Skip to content

Commit

Permalink
Update src/Runner/Parallel/ParallelConfigFactory.php
Browse files Browse the repository at this point in the history
Co-authored-by: Greg Korba <[email protected]>
  • Loading branch information
keradus and Wirone authored May 7, 2024
1 parent f45cdee commit 31acd48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Runner/Parallel/ParallelConfigFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static function sequential(): ParallelConfig
*/
public static function detect(
?int $filesPerProcess = null,
?int $processTimeout = null,
?int $processTimeout = null
): ParallelConfig {
$counter = new CpuCoreCounter([

Check warning on line 41 in src/Runner/Parallel/ParallelConfigFactory.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 mutation tests

Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ */ public static function detect(?int $filesPerProcess = null, ?int $processTimeout = null) : ParallelConfig { - $counter = new CpuCoreCounter([...FinderRegistry::getDefaultLogicalFinders(), new DummyCpuCoreFinder(1)]); + $counter = new CpuCoreCounter([new DummyCpuCoreFinder(1)]); return new ParallelConfig(...array_filter([$counter->getCount(), $filesPerProcess, $processTimeout], static fn($value): bool => null !== $value)); } }
...FinderRegistry::getDefaultLogicalFinders(),

Check warning on line 42 in src/Runner/Parallel/ParallelConfigFactory.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 mutation tests

Escaped Mutant for Mutator "SpreadOneItem": --- Original +++ New @@ @@ */ public static function detect(?int $filesPerProcess = null, ?int $processTimeout = null) : ParallelConfig { - $counter = new CpuCoreCounter([...FinderRegistry::getDefaultLogicalFinders(), new DummyCpuCoreFinder(1)]); + $counter = new CpuCoreCounter([[...FinderRegistry::getDefaultLogicalFinders()][0], new DummyCpuCoreFinder(1)]); return new ParallelConfig(...array_filter([$counter->getCount(), $filesPerProcess, $processTimeout], static fn($value): bool => null !== $value)); } }
Expand Down

0 comments on commit 31acd48

Please sign in to comment.