Skip to content

wip

wip #43

Triggered via push January 4, 2024 13:43
Status Success
Total duration 57s
Artifacts

test.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

30 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/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/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; }
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.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/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/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; }
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.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/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/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; }
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