-
-
Notifications
You must be signed in to change notification settings - Fork 946
Closed
Labels
Description
Feature request
When I run
vendor/bin/phpstan analyse foo... and I get an error, and I fix this error outside of foo, the error still shows up on the next run. This is the expected behavior, due to caching, I guess.
However, it's annoying :-)
I certainly see the point of having a cache to speed things up. But in some cases speed isn't so important, but accuracy is. So I'm suggesting a --no-cache (or clear-cache or clear-result-cache) command line option, which clears the cache.
- I know there's
--debugwhich does the same (does it?), but it outputs the (sometimes long) list of analyzed files. - And I know there's
clear-result-cache, but it would be nicer to have this included in the main command (i.e. without having to run a separate command)
Reactions are currently unavailable