feat: Group by source the required and provided extensions #1843
unit-tests.yaml
on: pull_request
Matrix: infection
Matrix: unit-tests
Unit tests status
0s
Annotations
2 errors and 1 warning
Infection (PHP 8.2)
Process completed with exit code 2.
|
Unit tests status
Process completed with exit code 1.
|
Infection (PHP 8.2):
src/RequirementChecker/RequirementsBuilder.php#L141
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
private function getSortedRequiredAndProvidedExtensions() : array
{
return array_map(static function (array $sources) : array {
- usort($sources, static fn(array $sourceTypePairA, array $sourceTypePairB) => strcmp((string) $sourceTypePairA[0], (string) $sourceTypePairB[0]));
+ usort($sources, static fn(array $sourceTypePairA, array $sourceTypePairB) => strcmp($sourceTypePairA[0], (string) $sourceTypePairB[0]));
return $sources;
}, self::sortByExtensionName($this->allExtensions));
}
|