Skip to main content

Creating a static autoloader for Drupal

 I'll be splitting out the static Drupal autoloader from phpstan-drupal into its own package. This way we can use it in drupal-rector or in the Drupal plugin for Psalm and who knows what more!

For those who don't know: Drupal leverages a stateful autoloading based on the installed modules, not pure Composer like most PHP projects. That means it is really hard to perform static analysis on it.