Skip to content

Result cache - scanFiles and scanDirectories should be hashed too #3952

@ThomasLandauer

Description

@ThomasLandauer

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 --debug which 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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions