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

Autoloading is broken after PHPStan builds an analysis cache #8

Closed
mglaman opened this issue Dec 20, 2018 · 1 comment
Closed

Autoloading is broken after PHPStan builds an analysis cache #8

mglaman opened this issue Dec 20, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@mglaman
Copy link
Owner

mglaman commented Dec 20, 2018

Replicate:

Clear PHPStan cache.

PHPSTAN_CACHE_DIR=$(php -r "print sys_get_temp_dir() . '/phpstan';")
rm -rf $PHPSTAN_CACHE_DIR

Run analyze

./bin/phpstan analyze web/modules/contrib/address

👍runs

Run it again:

./bin/phpstan analyze web/modules/contrib/address

errors about loading.

This is due to #7

@mglaman mglaman added the bug Something isn't working label Dec 20, 2018
@mglaman
Copy link
Owner Author

mglaman commented Dec 20, 2018

The problem is that the container is compiled and cached, meaning extensions never have loadConfiguration executed at a later stage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant