fix: Support named args in ParallelConfigFactory::detect()
#9637
Annotations
9 errors and 1 warning
PHP 7.4 Fixer with lowest deps
Process completed with exit code 8.
|
PHP 8.3 Fixer
Process completed with exit code 8.
|
PHP 8.2 Fixer
Process completed with exit code 8.
|
PHP 8.1 Fixer with Symfony ^6
Process completed with exit code 8.
|
PHP 8.3 Fixer with Symfony ^7
Process completed with exit code 8.
|
PHP 8.0 Fixer
Process completed with exit code 8.
|
PHP 8.4 Fixer
Process completed with exit code 8.
|
PHP 8.3 Fixer on macOS
Process completed with exit code 8.
|
PHP 8.3 Fixer on Windows
Process completed with exit code 1.
|
PHP 8.3 mutation tests:
src/Runner/Parallel/ParallelConfigFactory.php#L59
Escaped Mutant for Mutator "LessThan":
--- Original
+++ New
@@ @@
self::$cpuDetector = new CpuCoreCounter([...FinderRegistry::getDefaultLogicalFinders(), new DummyCpuCoreFinder(1)]);
}
$args = array_filter(['maxProcesses' => self::$cpuDetector->getCount(), 'filesPerProcess' => $filesPerProcess, 'processTimeout' => $processTimeout], static fn($value): bool => null !== $value);
- if (PHP_VERSION_ID < 80000) {
+ if (PHP_VERSION_ID <= 80000) {
$args = array_values($args);
}
return new ParallelConfig(...$args);
}
}
|