ddev / ddev-drupal-contrib

DDEV integration for developing Drupal contrib projects
Apache License 2.0
62 stars 11 forks source link

PHPStan fails because DrupalFinder relies on composer.json properties to detect DrupalRoot #42

Closed gardon closed 3 weeks ago

gardon commented 3 weeks ago

I was trying to use this to run PHPStan on a contrib project (feeds) and after some debugging I got to webflo/drupal-finder which fails to detect Drupal Root because it loads the composer.json from the module instead, and cannot find the installer-paths property that it uses to detect the root.

gardon commented 3 weeks ago

Not sure about the implication, but running ddev expand-composer-json allows me to run PHPStan

weitzman commented 3 weeks ago

Dupe of #14