wip #41
Annotations
10 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/IterableParameter.php#L59
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
throw new InvalidArgumentException((string) message('Argument value provided is empty'));
}
$iterable = ' *iterable';
- $iterableKey = '_K' . $iterable;
+ $iterableKey = $iterable . '_K';
$iterableValue = '_V' . $iterable;
try {
foreach ($value as $k => $v) {
|
Mutation testing (Infection):
src/IterableParameter.php#L59
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
throw new InvalidArgumentException((string) message('Argument value provided is empty'));
}
$iterable = ' *iterable';
- $iterableKey = '_K' . $iterable;
+ $iterableKey = $iterable;
$iterableValue = '_V' . $iterable;
try {
foreach ($value as $k => $v) {
|
Mutation testing (Infection):
src/IterableParameter.php#L59
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
throw new InvalidArgumentException((string) message('Argument value provided is empty'));
}
$iterable = ' *iterable';
- $iterableKey = '_K' . $iterable;
+ $iterableKey = '_K';
$iterableValue = '_V' . $iterable;
try {
foreach ($value as $k => $v) {
|
Mutation testing (Infection):
src/IterableParameter.php#L64
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
$iterableValue = '_V' . $iterable;
try {
foreach ($value as $k => $v) {
- assertNamedArgument($iterableKey, $this->key, $k);
+
assertNamedArgument($iterableValue, $this->value, $v);
}
} catch (Throwable $e) {
|
Mutation testing (Infection):
src/IterableParameter.php#L78
Escaped Mutant for Mutator "UnwrapSubstr":
--- Original
+++ New
@@ @@
$strstr = substr($strstr, 2);
}
$calledIn = strpos($strstr, ', called in');
- $message = $calledIn ? substr($strstr, 0, $calledIn) : $strstr;
+ $message = $calledIn ? $strstr : $strstr;
throw new InvalidArgumentException($message);
}
return $value;
|
Mutation testing (Infection):
src/NullParameter.php#L49
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
}
public function withDefault(mixed $null) : NullParameterInterface
{
- $new = clone $this;
+ $new = $this;
$new->default = $null;
return $new;
}
|
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
|
The logs for this run have expired and are no longer available.
Loading