Skip to content

Move the PHPStan cache out of '.artifacts/phpstan' back to the default location #315

Description

@AlexSkrypnyk

Summary

phpstan.neon sets tmpDir: .artifacts/phpstan, which redirects PHPStan's analysis cache into the project's artifacts directory. The Vortex template does not configure PHPStan this way, and it should not be the case here either.

.artifacts/ holds build and run outputs that are expected to be disposable. Pointing a tool cache at it means the cache is caught up in whatever cleans that directory, so analysis silently starts cold whenever it is emptied.

Details

  • Find out how the tmpDir line came to be there, and whether anything now depends on it - a CI cache key, a cleanup step, or a .gitignore entry added alongside it.
  • Remove the override so PHPStan uses its default cache location.
  • Check .gitignore and any CI caching configuration for references to .artifacts/phpstan that become dead once the override is gone.
  • Confirm analysis still passes afterwards, and that the first run after the change repopulates the cache normally rather than erroring on a missing directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions