Closed welly closed 2 weeks ago
This happens when the phpstan-disallowed-calls/extension.neon
file is not loaded. Is the extension-installer working correctly in the pipeline? Check vendor/phpstan/extension-installer/src/GeneratedConfig.php
if it contains spaze/phpstan-disallowed-calls
in both the pipeline and on your local.
That makes sense! Thanks very much. I think what's happening is phpstan/extension-installer is not being installed in our pipeline as it's in dev and as such when composer install is run, it ignores dev modules. I'll move it out of dev and I think that should fix it!
Thanks!
That fixed it! Thank you.
I'm running phpstan with phpstan-disallowed-calls in a bitbucket pipeline but getting the error in the title. Output from the pipeline looks like this:
My phpstan.neon looks like:
I've got phpstan/extension-installer installed. If I run
./vendor/bin/phpstan analyze --memory-limit 2048M src/modules/custom
in my local environment, it works as expected.Any ideas what might be causing this?
Many thanks!