Fix crush when intersection types used + Fix psalm + Kill mutants #663
Annotations
1 error and 2 warnings
mutation / PHP 8.1-ubuntu-latest
Process completed with exit code 1.
|
mutation / PHP 8.1-ubuntu-latest:
src/DefinitionStorage.php#L160
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
$unionTypes = [];
foreach ($type->getTypes() as $unionType) {
if ($unionType instanceof ReflectionIntersectionType || $unionType->isBuiltin()) {
- continue;
+ break;
}
$typeName = $unionType->getName();
/**
|
mutation / PHP 8.1-ubuntu-latest:
src/ParameterDefinition.php#L157
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
$class = implode('|', $types);
foreach ($types as $type) {
if ($type instanceof ReflectionIntersectionType || $type->isBuiltin()) {
- continue;
+ break;
}
$typeName = $type->getName();
/**
|