improve action interface #45
Annotations
2 warnings
Mutation testing (Infection):
src/ReflectionAction.php#L139
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
if ($type instanceof ReflectionUnionType) {
$typeName = [];
foreach ($type->getTypes() as $unionType) {
- if ($unionType instanceof ReflectionIntersectionType) {
+ if (false) {
continue;
}
$typeName[] = $unionType->getName();
|
Mutation testing (Infection):
src/ReflectionAction.php#L151
Escaped Mutant for Mutator "LogicalAnd":
@@ @@
'void' => 'null',
default => $typeName,
};
- if (is_array($return) && $expect === $return) {
+ if (is_array($return) || $expect === $return) {
return;
}
if (!in_array($return, $expect, true)) {
|
Loading