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.
Summary
phpstan.neonsetstmpDir: .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
tmpDirline came to be there, and whether anything now depends on it - a CI cache key, a cleanup step, or a.gitignoreentry added alongside it..gitignoreand any CI caching configuration for references to.artifacts/phpstanthat become dead once the override is gone.