Skip to content

fix symbol

fix symbol #46

Triggered via push January 10, 2025 21:22
Status Success
Total duration 38s
Artifacts

test.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

12 warnings
PHP 8.4 test on ubuntu-24.04: src/ControllerName.php#L24
Escaped Mutant for Mutator "PublicVisibility": @@ @@ final class ControllerName implements ControllerNameInterface { use ActionNameTrait; - public static function symbol(): string + protected static function symbol(): string { return 'Controller'; }
PHP 8.4 test on ubuntu-24.04: 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();
PHP 8.4 test on ubuntu-24.04: 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)) {
PHP 8.3 test on ubuntu-24.04: src/ControllerName.php#L24
Escaped Mutant for Mutator "PublicVisibility": @@ @@ final class ControllerName implements ControllerNameInterface { use ActionNameTrait; - public static function symbol(): string + protected static function symbol(): string { return 'Controller'; }
PHP 8.3 test on ubuntu-24.04: 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();
PHP 8.3 test on ubuntu-24.04: 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)) {
PHP 8.2 test on ubuntu-24.04: src/ControllerName.php#L24
Escaped Mutant for Mutator "PublicVisibility": @@ @@ final class ControllerName implements ControllerNameInterface { use ActionNameTrait; - public static function symbol(): string + protected static function symbol(): string { return 'Controller'; }
PHP 8.2 test on ubuntu-24.04: 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();
PHP 8.2 test on ubuntu-24.04: 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)) {
PHP 8.1 test on ubuntu-24.04: src/ControllerName.php#L24
Escaped Mutant for Mutator "PublicVisibility": @@ @@ final class ControllerName implements ControllerNameInterface { use ActionNameTrait; - public static function symbol(): string + protected static function symbol(): string { return 'Controller'; }
PHP 8.1 test on ubuntu-24.04: 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();
PHP 8.1 test on ubuntu-24.04: 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)) {