-
-
Notifications
You must be signed in to change notification settings - Fork 864
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
Add a parent interface does not properly invalidate the cache #5056
Comments
This bug report is missing a link to reproduction on phpstan.org. It will most likely be closed after manual review. |
I could not provide a reproduction on phpstan.org, as this is a cache invalidation issue. |
Can you please verify that this fix (phpstan/phpstan-src@30ec3a0) works by running: |
@ondrejmirtes this does not solve it when reproducing it on the actual scssphp repository where I faced it. How I tried it (in my scssphp clone):
And then, I did the same again with our modified file{
"config": {
"preferred-install": {
"*": "dist"
},
"sort-packages": true
},
"require": {
"phpstan/phpstan": "dev-master"
}
} |
Fixed and tested, thank you! phpstan/phpstan-src@d53a9a1 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug report
When adding a
extends \Throwable
on an interface that is already used in a@throws
tag, phpstan does not properly pick the change to remove the error on the@throws
tag unless I manually remove/tmp/phpstan
to clear the cache.Code snippet that reproduces the problem
PHPDoc tag @throws with type ScssPhp\ScssPhp\Exception\SassException is not subtype of Throwable
extends \Throwable
on the interfaceExpected output
phpstan should not report that the ignored error is useless (and if we omit the baseline, it should not report the error).
However, until I cleared the cache manually, it kept reporting the error about
@throws
using a non-Throwable type.Did PHPStan help you today? Did it make you happy in any way?
Thanks for the project. Static analysis is definitely helpful.
The text was updated successfully, but these errors were encountered: