Upgrading infection/infection 0.34 to 0.35
Breaking0.34.2 → 0.35.8Breaking8New3Changed3Fixed16Other19
BreakingUpgrade verdict
8 breaking changes.
In plain terms
- Automatic thread selection now respects CPU quotas, so fewer threads may be used than before.
- The --filter option now means file paths, and Git status filtering moved to --git-diff-filter. The --base option is replaced by --git-diff-base.
- Automatic thread selection can now use more than one thread on Windows. Use --threads=1 if you want serial execution.
- Thread counts that convert to zero or a negative integer now fail. Use a positive number or max.
Must act Top 3 of 8 that need code or config changes
Moves fidry/cpu-core-counter ^1.0 → ^1.4, sanmai/di-container ^0.1.16 → ^0.1.23 || ^0.2, thecodingmachine/safe ^v3.0 → ^v3.4. Your build may pick other versions.
What you must change
Breaking8
Applies a CPU limit to detected thread counts: default uses 80% of cores (min one), max uses all cores but one.
maxFixes source filtering for initial-test:run: --filter now selects file paths, and --base is replaced by --git-diff-base.
initial-test:run--filter--git-diff-filter--base--git-diff-base--git-diff-linesAllows automatic parallelism on Windows; set --threads=1 to retain serial execution.
--threadsRejects non-positive thread counts such as 0, -1, or 0.5; use a positive thread count or max.
--threadsmaxFails when PHP configures an auto-prepend file.
Validates configurations with PHPUnit 13.2 and newer in a separate step before the initial test run, changing error output.
Stops validating PHPUnit configurations against external XSDs for PHPUnit 10 and newer; schema errors now come from PHPUnit.
Makes mutant memory limiting a test framework implementation detail; automatic limits now apply only to PHPUnit mutant processes.
phpunit.bat