wip #38
Annotations
24 warnings
PHP 8.2 test on ubuntu-latest:
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);
|
PHP 8.2 test on ubuntu-latest:
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']) {
|
PHP 8.2 test on ubuntu-latest:
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;
|
PHP 8.2 test on ubuntu-latest:
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
|
PHP 8.2 test on ubuntu-latest:
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
|
PHP 8.2 test on ubuntu-latest:
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
|
PHP 8.2 test on ubuntu-latest:
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
{
|
PHP 8.2 test on ubuntu-latest:
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
{
|
PHP 8.1 test on ubuntu-latest:
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);
|
PHP 8.1 test on ubuntu-latest:
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']) {
|
PHP 8.1 test on ubuntu-latest:
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;
|
PHP 8.1 test on ubuntu-latest:
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
|
PHP 8.1 test on ubuntu-latest:
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
|
PHP 8.1 test on ubuntu-latest:
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
|
PHP 8.1 test on ubuntu-latest:
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
{
|
PHP 8.1 test on ubuntu-latest:
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
{
|
PHP 8.3 test on ubuntu-latest:
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);
|
PHP 8.3 test on ubuntu-latest:
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']) {
|
PHP 8.3 test on ubuntu-latest:
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;
|
PHP 8.3 test on ubuntu-latest:
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
|
PHP 8.3 test on ubuntu-latest:
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
|
PHP 8.3 test on ubuntu-latest:
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
|
PHP 8.3 test on ubuntu-latest:
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
{
|
PHP 8.3 test on ubuntu-latest:
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
{
|