wip #45
Annotations
30 warnings
PHP 8.3 test on ubuntu-latest:
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) {
|
PHP 8.3 test on ubuntu-latest:
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) {
|
PHP 8.3 test on ubuntu-latest:
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) {
|
PHP 8.3 test on ubuntu-latest:
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) {
|
PHP 8.3 test on ubuntu-latest:
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;
|
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.1 test on ubuntu-latest:
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) {
|
PHP 8.1 test on ubuntu-latest:
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) {
|
PHP 8.1 test on ubuntu-latest:
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) {
|
PHP 8.1 test on ubuntu-latest:
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) {
|
PHP 8.1 test on ubuntu-latest:
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;
|
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.2 test on ubuntu-latest:
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) {
|
PHP 8.2 test on ubuntu-latest:
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) {
|
PHP 8.2 test on ubuntu-latest:
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) {
|
PHP 8.2 test on ubuntu-latest:
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) {
|
PHP 8.2 test on ubuntu-latest:
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;
|
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
{
|