Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gardon opened this issue May 7, 2024 · 2 comments

Comments

@gardon
Copy link

gardon commented May 7, 2024

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
Copy link
Author

gardon commented May 7, 2024

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

@weitzman
Copy link
Collaborator

weitzman commented May 7, 2024

Dupe of #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants