phpstan-drupal
phpstan-drupal copied to clipboard
Provide a way to inspect controllers
Per https://github.com/mglaman/phpstan-drupal/issues/338 it'd be great if there was a way to inspect a controller or controller method
This way we could check for incorrect arguments and types, along with deprecated access checks or more.
I'm not sure what you do mean here 🤔 Verifying if the controller match the route definition for instance?
Ah, I wish I knew. Maybe it was inferring the arguments from the route path to the controller method. And if there are options defining the parameter types we could match.
It's probably too expensive (parsing more YAML.) But that was the idea