Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Jul 27, 2025

when running phpunit with --cache-result, e.g.

vendor/bin/phpunit tests/PHPStan/Analyser/NodeScopeResolverTest.php --cache-result --order-by=defects,random --stop-on-failure

it creates a result-cache file.


lets make sure this file is ignored and not mistakenly committed into the codebase

@staabm staabm marked this pull request as ready for review July 27, 2025 08:38
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes
Copy link
Member

Is there downside to always generate the cache? And put it under tmp/ that's already ignored?

@staabm
Copy link
Contributor Author

staabm commented Jul 27, 2025

no. I assumed there is a reason why phpunit.xml was not configured to use the tmp/ dir.

after configuring it for tmp/ we don't need the additional ignore

@ondrejmirtes ondrejmirtes merged commit 6a97443 into phpstan:2.1.x Jul 27, 2025
253 checks passed
@staabm staabm deleted the ign-unit branch July 27, 2025 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants