-
Notifications
You must be signed in to change notification settings - Fork 25
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
Upgrade to PHPStan 1.7 #243
Upgrade to PHPStan 1.7 #243
Conversation
The upgrade is currently blocked by an issue with |
Maybe it will be possible to migrate the whole autoloader magic to PHPStan's BetterReflection\SourceLocator implementation. |
For reference, this is the issue I opened in the phpstan repo: phpstan/phpstan#7293 |
Current plan: Refactor the autoloaders. Get rid of the cache and remove the laminas-code dependency in the extension attribute & extension interface autoloaders as those also seem to cause issues with the BetterReflection reflection logic used by PHPStan 1.7. It seems important to make the autoloader implementations as dump as possible and as independent as possible. All dependencies need to be injected and not instantiated manually as this causes a problem with laminas-code. |
This is a lot more complicated than expected. After removing the cache and the laminas-code dependency, I got stuck with a problem in the Hitting a dead-end road with this. Need to look for alternatives how to hook into PHPStan. |
Eval()ing code in the autoloaders also does not work, an error I get now is |
906f5a2
to
a815577
Compare
a815577
to
4537a6c
Compare
Problem fixed in PHPStan core 1.7.2. |
No description provided.