Detect changes in ENUMs as BC breaks #1554
Annotations
1 warning
Infection [8.2, locked]:
src/DetectChanges/BCBreak/EnumBased/CasesChanged.php#L63
Escaped Mutant for Mutator "UnwrapArrayValues":
--- Original
+++ New
@@ @@
$caseName = $case->getName();
return Change::removed('Case ' . $fromEnumName . '::' . $caseName . ' was removed');
}, $removedCases));
- $caseAddedChanges = array_values(array_map(static function (ReflectionEnumCase $case) use($fromEnumName) : Change {
+ $caseAddedChanges = array_map(static function (ReflectionEnumCase $case) use($fromEnumName) : Change {
$caseName = $case->getName();
return Change::added('Case ' . $fromEnumName . '::' . $caseName . ' was added');
- }, $addedCases));
+ }, $addedCases);
return Changes::fromList(...$caseRemovedChanges, ...$caseAddedChanges);
}
/**
|
Loading