wip #38
Annotations
8 warnings
Mutation testing (Infection):
src/Arguments.php#L60
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
--- Original
+++ New
@@ @@
if ($arguments instanceof ArrayAccess) {
$arguments = $this->getArrayAccessArray($arguments);
}
- if (array_is_list($arguments) && count($arguments) === count($parameters)) {
+ if (!array_is_list($arguments) && count($arguments) === count($parameters)) {
$arguments = array_combine($parameters->keys(), $arguments);
}
$this->setArguments($arguments);
|
Mutation testing (Infection):
src/Arguments.php#L61
Escaped Mutant for Mutator "UnwrapArrayCombine":
--- Original
+++ New
@@ @@
$arguments = $this->getArrayAccessArray($arguments);
}
if (array_is_list($arguments) && count($arguments) === count($parameters)) {
- $arguments = array_combine($parameters->keys(), $arguments);
+ $arguments = $arguments;
}
$this->setArguments($arguments);
if ($parameters->keys() === ['K', 'V']) {
|
Mutation testing (Infection):
src/Traits/ArrayParameterModifyTrait.php#L28
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
private bool $isList = false;
public function withDefault(array $value) : static
{
- // @phpstan-ignore-next-line
- $this($value);
+
$new = clone $this;
$new->default = $value;
return $new;
|
Mutation testing (Infection):
src/UnionParameter.php#L59
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
PLAIN;
}
}
- $message = implode(';' . PHP_EOL, $messages);
+ $message = implode(PHP_EOL . ';', $messages);
throw new TypeError((string) message("Argument provided doesn't match union: %message%", message: $message));
}
public function withAdded(ParameterInterface ...$parameter) : static
|
Mutation testing (Infection):
src/UnionParameter.php#L59
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
PLAIN;
}
}
- $message = implode(';' . PHP_EOL, $messages);
+ $message = implode(PHP_EOL, $messages);
throw new TypeError((string) message("Argument provided doesn't match union: %message%", message: $message));
}
public function withAdded(ParameterInterface ...$parameter) : static
|
Mutation testing (Infection):
src/UnionParameter.php#L59
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
PLAIN;
}
}
- $message = implode(';' . PHP_EOL, $messages);
+ $message = implode(';', $messages);
throw new TypeError((string) message("Argument provided doesn't match union: %message%", message: $message));
}
public function withAdded(ParameterInterface ...$parameter) : static
|
Mutation testing (Infection):
src/UnionParameter.php#L61
Escaped Mutant for Mutator "Throw_":
--- Original
+++ New
@@ @@
}
}
$message = implode(';' . PHP_EOL, $messages);
- throw new TypeError((string) message("Argument provided doesn't match union: %message%", message: $message));
+ new TypeError((string) message("Argument provided doesn't match union: %message%", message: $message));
}
public function withAdded(ParameterInterface ...$parameter) : static
{
|
Mutation testing (Infection):
src/UnionParameter.php#L62
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
}
}
$message = implode(';' . PHP_EOL, $messages);
- throw new TypeError((string) message("Argument provided doesn't match union: %message%", message: $message));
+ throw new TypeError(message("Argument provided doesn't match union: %message%", message: $message));
}
public function withAdded(ParameterInterface ...$parameter) : static
{
|
The logs for this run have expired and are no longer available.
Loading