single line per error #100
Annotations
5 warnings
Mutation testing (Infection):
src/Arguments.php#L284
Escaped Mutant for Mutator "Break_":
@@ @@
$this->errors[] = $e->getMessage();
}
}
- break;
+ continue;
}
if ($this->isSkipOptional($name)) {
continue;
|
Mutation testing (Infection):
src/Arguments.php#L344
Escaped Mutant for Mutator "LogicalOr":
@@ @@
{
foreach ($cast as $key => $value) {
$key = strval($key);
- if (str_contains($key, "\x00") || in_array($key, $this->reflected, true)) {
+ if (str_contains($key, "\x00") && in_array($key, $this->reflected, true)) {
continue;
}
$array[$key] = $value;
|
Mutation testing (Infection):
src/Parameters.php#L76
Escaped Mutant for Mutator "CloneRemoval":
@@ @@
}
public function withIsVariadic(bool $flag): ParametersInterface
{
- $new = clone $this;
+ $new = $this;
$new->isVariadic = $flag;
return $new;
}
|
Mutation testing (Infection):
src/ReflectionParameterTyped.php#L81
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
if ($this->type instanceof ReflectionUnionType) {
$types = [];
foreach ($this->type->getTypes() as $type) {
- if ($type instanceof ReflectionIntersectionType) {
+ if (false) {
continue;
}
$types[] = $type->getName();
|
Mutation testing (Infection):
src/ReflectionParameterTyped.php#L121
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
if (method_exists($reflection, 'getName')) {
return $reflection->getName();
}
- if ($reflection instanceof ReflectionUnionType) {
+ if (true) {
$types = [];
foreach ($reflection->getTypes() as $type) {
$types[] = $this->getTypeHint($type);
|
Loading