phpstan: Result cache not working?
I just updated my project to use PHPStan 0.12.12 and read your article.
Based on this I would expect that repeated analysis (without any changes in the code, composer.lock or anything else) should be nearly instant, right? Because all files should be in the result cache so PHPStan would have nothing to do.
Yet the analysis takes 6-7 seconds regardless on whether or not I run vendor/bin/phpstan clear-result-cache -c phpstan.neon first.
Yes it’s fast, I don’t mean to complain that it’s too slow or anything. I just expected the result cache to have some effect but can’t see any. ¯\_(ツ)_/¯
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20 (16 by maintainers)
Fixed: https://github.com/phpstan/phpstan-src/commit/5b764c7ee83332291ccb65ad66d9a62082c739e3 Will be released promptly as PHPStan 0.12.13.
@enumag Sorry for stealing your issue, it’s a different one so I’ll keep this open and you can investigate what’s going on there.
Oh nevermind, I see the bug already 😃