Hi,
I have the following constellation:
- PHPStan is installed globally (
composer global require ...)
- My project is of course "local" and I use PHPStan there.
My problem is as follows:
- I run PHPStan after setup, and results are as expected.
- Then I run
composer install locally in the project.
- When I run PHPStan again, the scan fails.
This is because the extension installer re-generates the GeneratedConfig on composer install, and because there are no extensions installed locally, the config is now empty. This leads to some code not being correctly interpreted because the extensions are ignored.
Is there anything I need to do, or do you have other advice? Thanks! :-)
Hi,
I have the following constellation:
composer global require ...)My problem is as follows:
composer installlocally in the project.This is because the extension installer re-generates the
GeneratedConfigoncomposer install, and because there are no extensions installed locally, the config is now empty. This leads to some code not being correctly interpreted because the extensions are ignored.Is there anything I need to do, or do you have other advice? Thanks! :-)