phpstan-drupal
phpstan-drupal copied to clipboard
Adding the fix for the webflow
Adding the fix for the webflow
fixes #756
Well, that sucks. \DrupalFinder\DrupalFinderComposerRuntime::getVendorDir is picking up InstalledVersions from within the PHPStan phar so it's broken with getVendorDir
Well, that sucks. \DrupalFinder\DrupalFinderComposerRuntime::getVendorDir is picking up InstalledVersions from within the PHPStan phar so it's broken with getVendorDir
Lets try to harden this part. Another approach I have tried some time ago was an composer plugin which dumps the config.
https://github.com/webflo/drupal-finder-plugin/blob/1.x/src/DrupalFinderPlugin/Installer.php#L163
@webflo thanks for looking into this, I paused and did a pivot at DrupalCon
Any chance we can fix this soon? Would help at https://github.com/ddev/ddev-drupal-contrib/pull/53
@weitzman Could you try https://github.com/webflo/drupal-finder/pull/73 thanks! This is my preferred approach. Thanks!
Unfortunately I dont have time to test phpstan-drupal with the PR. And Drush no longer uses drupal-finder.
I have created a new release for drupal-finder
Thanks @webflo!
Superseded by https://github.com/mglaman/phpstan-drupal/pull/790