add construct helper #47
Annotations
12 warnings
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)) {
|
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)) {
|