What a stupid mistake :D
I was developing a quick fix script for an issue, and just needed some convenience features from PHPStorm so I did it in the routes file (loaded on every application load) of this this script executes on all requests then.
A true error 40 :-)