Skip to content

fix variadic

fix variadic #111

Triggered via push February 9, 2025 17:13
Status Success
Total duration 1m 15s
Artifacts

test.yml

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

Annotations

40 warnings
PHP 8.3 test on ubuntu-24.04: src/Arguments.php#L71
Escaped Mutant for Mutator "LogicalAnd": @@ @@ $arguments = $this->getArrayAccessArray($arguments); } $this->isIterable = $parameters->keys() === ['K', 'V']; - $this->isPositional = array_is_list($arguments) && !$this->isIterable; + $this->isPositional = array_is_list($arguments) || !$this->isIterable; if ($this->isIterable) { $pairs = []; foreach (array_keys($arguments) as $key) {
PHP 8.3 test on ubuntu-24.04: src/Arguments.php#L74
Escaped Mutant for Mutator "Foreach_": @@ @@ $this->isPositional = array_is_list($arguments) && !$this->isIterable; if ($this->isIterable) { $pairs = []; - foreach (array_keys($arguments) as $key) { + foreach ([] as $key) { $parameters->get('K')($key); // @phpstan-ignore-line $key = strval($key);
PHP 8.3 test on ubuntu-24.04: src/Arguments.php#L75
Escaped Mutant for Mutator "FunctionCallRemoval": @@ @@ if ($this->isIterable) { $pairs = []; foreach (array_keys($arguments) as $key) { - $parameters->get('K')($key); + // @phpstan-ignore-line $key = strval($key); $pairs[$key] = $parameters->get('V');
PHP 8.3 test on ubuntu-24.04: src/Arguments.php#L202
Escaped Mutant for Mutator "Continue_": @@ @@ foreach (array_keys($this->arguments) as $key) { if ($count >= $this->parameters->count()) { unset($this->arguments[$key]); - continue; + break; } if (is_string($key)) { $name = $key;
PHP 8.3 test on ubuntu-24.04: src/Arguments.php#L209
Escaped Mutant for Mutator "LogicalAnd": @@ @@ } else { $name = $this->parameters->keys()[$key] ?? null; } - if ($name && $this->parameters->has($name)) { + if ($name || $this->parameters->has($name)) { $count++; continue; }
PHP 8.3 test on ubuntu-24.04: src/Arguments.php#L260
Escaped Mutant for Mutator "Continue_": @@ @@ $args = $id; $args[] = $name; $this->handleDefaultNested($parameter, ...$args); - continue; + break; } $current =& $this->arguments; foreach ($id as $key) {
PHP 8.3 test on ubuntu-24.04: src/Arguments.php#L270
Escaped Mutant for Mutator "Continue_": @@ @@ $current =& $current[$key]; } if (!is_array($current)) { - continue; + break; } if (array_key_exists($name, $current)) { unset($current);
PHP 8.3 test on ubuntu-24.04: src/Arguments.php#L275
Escaped Mutant for Mutator "Continue_": @@ @@ } if (array_key_exists($name, $current)) { unset($current); - continue; + break; } if ($parameter->default() !== null) { $current[$name] = $parameter->default();
PHP 8.3 test on ubuntu-24.04: src/Arguments.php#L288
Escaped Mutant for Mutator "UnwrapArrayKeys": @@ @@ if ($this->parameters()->requiredKeys()->count() <= $this->count) { return; } - $argumentKeys = array_keys($this->arguments); + $argumentKeys = $this->arguments; $missingNamed = array_diff($this->parameters()->keys(), $argumentKeys); $missingPositional = array_diff(array_keys($this->parameters()->keys()), $argumentKeys); $missingPositional = array_map(fn(int $key) => $this->parameters()->keys()[$key], $missingPositional);
PHP 8.3 test on ubuntu-24.04: src/Arguments.php#L289
Escaped Mutant for Mutator "UnwrapArrayDiff": @@ @@ return; } $argumentKeys = array_keys($this->arguments); - $missingNamed = array_diff($this->parameters()->keys(), $argumentKeys); + $missingNamed = $this->parameters()->keys(); $missingPositional = array_diff(array_keys($this->parameters()->keys()), $argumentKeys); $missingPositional = array_map(fn(int $key) => $this->parameters()->keys()[$key], $missingPositional); $missing = array_unique(array_merge($missingNamed, $missingPositional));
PHP 8.2 test on ubuntu-24.04: src/Arguments.php#L71
Escaped Mutant for Mutator "LogicalAnd": @@ @@ $arguments = $this->getArrayAccessArray($arguments); } $this->isIterable = $parameters->keys() === ['K', 'V']; - $this->isPositional = array_is_list($arguments) && !$this->isIterable; + $this->isPositional = array_is_list($arguments) || !$this->isIterable; if ($this->isIterable) { $pairs = []; foreach (array_keys($arguments) as $key) {
PHP 8.2 test on ubuntu-24.04: src/Arguments.php#L74
Escaped Mutant for Mutator "Foreach_": @@ @@ $this->isPositional = array_is_list($arguments) && !$this->isIterable; if ($this->isIterable) { $pairs = []; - foreach (array_keys($arguments) as $key) { + foreach ([] as $key) { $parameters->get('K')($key); // @phpstan-ignore-line $key = strval($key);
PHP 8.2 test on ubuntu-24.04: src/Arguments.php#L75
Escaped Mutant for Mutator "FunctionCallRemoval": @@ @@ if ($this->isIterable) { $pairs = []; foreach (array_keys($arguments) as $key) { - $parameters->get('K')($key); + // @phpstan-ignore-line $key = strval($key); $pairs[$key] = $parameters->get('V');
PHP 8.2 test on ubuntu-24.04: src/Arguments.php#L202
Escaped Mutant for Mutator "Continue_": @@ @@ foreach (array_keys($this->arguments) as $key) { if ($count >= $this->parameters->count()) { unset($this->arguments[$key]); - continue; + break; } if (is_string($key)) { $name = $key;
PHP 8.2 test on ubuntu-24.04: src/Arguments.php#L209
Escaped Mutant for Mutator "LogicalAnd": @@ @@ } else { $name = $this->parameters->keys()[$key] ?? null; } - if ($name && $this->parameters->has($name)) { + if ($name || $this->parameters->has($name)) { $count++; continue; }
PHP 8.2 test on ubuntu-24.04: src/Arguments.php#L260
Escaped Mutant for Mutator "Continue_": @@ @@ $args = $id; $args[] = $name; $this->handleDefaultNested($parameter, ...$args); - continue; + break; } $current =& $this->arguments; foreach ($id as $key) {
PHP 8.2 test on ubuntu-24.04: src/Arguments.php#L270
Escaped Mutant for Mutator "Continue_": @@ @@ $current =& $current[$key]; } if (!is_array($current)) { - continue; + break; } if (array_key_exists($name, $current)) { unset($current);
PHP 8.2 test on ubuntu-24.04: src/Arguments.php#L275
Escaped Mutant for Mutator "Continue_": @@ @@ } if (array_key_exists($name, $current)) { unset($current); - continue; + break; } if ($parameter->default() !== null) { $current[$name] = $parameter->default();
PHP 8.2 test on ubuntu-24.04: src/Arguments.php#L288
Escaped Mutant for Mutator "UnwrapArrayKeys": @@ @@ if ($this->parameters()->requiredKeys()->count() <= $this->count) { return; } - $argumentKeys = array_keys($this->arguments); + $argumentKeys = $this->arguments; $missingNamed = array_diff($this->parameters()->keys(), $argumentKeys); $missingPositional = array_diff(array_keys($this->parameters()->keys()), $argumentKeys); $missingPositional = array_map(fn(int $key) => $this->parameters()->keys()[$key], $missingPositional);
PHP 8.2 test on ubuntu-24.04: src/Arguments.php#L289
Escaped Mutant for Mutator "UnwrapArrayDiff": @@ @@ return; } $argumentKeys = array_keys($this->arguments); - $missingNamed = array_diff($this->parameters()->keys(), $argumentKeys); + $missingNamed = $this->parameters()->keys(); $missingPositional = array_diff(array_keys($this->parameters()->keys()), $argumentKeys); $missingPositional = array_map(fn(int $key) => $this->parameters()->keys()[$key], $missingPositional); $missing = array_unique(array_merge($missingNamed, $missingPositional));
PHP 8.4 test on ubuntu-24.04: src/Arguments.php#L71
Escaped Mutant for Mutator "LogicalAnd": @@ @@ $arguments = $this->getArrayAccessArray($arguments); } $this->isIterable = $parameters->keys() === ['K', 'V']; - $this->isPositional = array_is_list($arguments) && !$this->isIterable; + $this->isPositional = array_is_list($arguments) || !$this->isIterable; if ($this->isIterable) { $pairs = []; foreach (array_keys($arguments) as $key) {
PHP 8.4 test on ubuntu-24.04: src/Arguments.php#L74
Escaped Mutant for Mutator "Foreach_": @@ @@ $this->isPositional = array_is_list($arguments) && !$this->isIterable; if ($this->isIterable) { $pairs = []; - foreach (array_keys($arguments) as $key) { + foreach ([] as $key) { $parameters->get('K')($key); // @phpstan-ignore-line $key = strval($key);
PHP 8.4 test on ubuntu-24.04: src/Arguments.php#L75
Escaped Mutant for Mutator "FunctionCallRemoval": @@ @@ if ($this->isIterable) { $pairs = []; foreach (array_keys($arguments) as $key) { - $parameters->get('K')($key); + // @phpstan-ignore-line $key = strval($key); $pairs[$key] = $parameters->get('V');
PHP 8.4 test on ubuntu-24.04: src/Arguments.php#L202
Escaped Mutant for Mutator "Continue_": @@ @@ foreach (array_keys($this->arguments) as $key) { if ($count >= $this->parameters->count()) { unset($this->arguments[$key]); - continue; + break; } if (is_string($key)) { $name = $key;
PHP 8.4 test on ubuntu-24.04: src/Arguments.php#L209
Escaped Mutant for Mutator "LogicalAnd": @@ @@ } else { $name = $this->parameters->keys()[$key] ?? null; } - if ($name && $this->parameters->has($name)) { + if ($name || $this->parameters->has($name)) { $count++; continue; }
PHP 8.4 test on ubuntu-24.04: src/Arguments.php#L260
Escaped Mutant for Mutator "Continue_": @@ @@ $args = $id; $args[] = $name; $this->handleDefaultNested($parameter, ...$args); - continue; + break; } $current =& $this->arguments; foreach ($id as $key) {
PHP 8.4 test on ubuntu-24.04: src/Arguments.php#L270
Escaped Mutant for Mutator "Continue_": @@ @@ $current =& $current[$key]; } if (!is_array($current)) { - continue; + break; } if (array_key_exists($name, $current)) { unset($current);
PHP 8.4 test on ubuntu-24.04: src/Arguments.php#L275
Escaped Mutant for Mutator "Continue_": @@ @@ } if (array_key_exists($name, $current)) { unset($current); - continue; + break; } if ($parameter->default() !== null) { $current[$name] = $parameter->default();
PHP 8.4 test on ubuntu-24.04: src/Arguments.php#L288
Escaped Mutant for Mutator "UnwrapArrayKeys": @@ @@ if ($this->parameters()->requiredKeys()->count() <= $this->count) { return; } - $argumentKeys = array_keys($this->arguments); + $argumentKeys = $this->arguments; $missingNamed = array_diff($this->parameters()->keys(), $argumentKeys); $missingPositional = array_diff(array_keys($this->parameters()->keys()), $argumentKeys); $missingPositional = array_map(fn(int $key) => $this->parameters()->keys()[$key], $missingPositional);
PHP 8.4 test on ubuntu-24.04: src/Arguments.php#L289
Escaped Mutant for Mutator "UnwrapArrayDiff": @@ @@ return; } $argumentKeys = array_keys($this->arguments); - $missingNamed = array_diff($this->parameters()->keys(), $argumentKeys); + $missingNamed = $this->parameters()->keys(); $missingPositional = array_diff(array_keys($this->parameters()->keys()), $argumentKeys); $missingPositional = array_map(fn(int $key) => $this->parameters()->keys()[$key], $missingPositional); $missing = array_unique(array_merge($missingNamed, $missingPositional));
PHP 8.1 test on ubuntu-24.04: src/Arguments.php#L71
Escaped Mutant for Mutator "LogicalAnd": @@ @@ $arguments = $this->getArrayAccessArray($arguments); } $this->isIterable = $parameters->keys() === ['K', 'V']; - $this->isPositional = array_is_list($arguments) && !$this->isIterable; + $this->isPositional = array_is_list($arguments) || !$this->isIterable; if ($this->isIterable) { $pairs = []; foreach (array_keys($arguments) as $key) {
PHP 8.1 test on ubuntu-24.04: src/Arguments.php#L74
Escaped Mutant for Mutator "Foreach_": @@ @@ $this->isPositional = array_is_list($arguments) && !$this->isIterable; if ($this->isIterable) { $pairs = []; - foreach (array_keys($arguments) as $key) { + foreach ([] as $key) { $parameters->get('K')($key); // @phpstan-ignore-line $key = strval($key);
PHP 8.1 test on ubuntu-24.04: src/Arguments.php#L75
Escaped Mutant for Mutator "FunctionCallRemoval": @@ @@ if ($this->isIterable) { $pairs = []; foreach (array_keys($arguments) as $key) { - $parameters->get('K')($key); + // @phpstan-ignore-line $key = strval($key); $pairs[$key] = $parameters->get('V');
PHP 8.1 test on ubuntu-24.04: src/Arguments.php#L202
Escaped Mutant for Mutator "Continue_": @@ @@ foreach (array_keys($this->arguments) as $key) { if ($count >= $this->parameters->count()) { unset($this->arguments[$key]); - continue; + break; } if (is_string($key)) { $name = $key;
PHP 8.1 test on ubuntu-24.04: src/Arguments.php#L209
Escaped Mutant for Mutator "LogicalAnd": @@ @@ } else { $name = $this->parameters->keys()[$key] ?? null; } - if ($name && $this->parameters->has($name)) { + if ($name || $this->parameters->has($name)) { $count++; continue; }
PHP 8.1 test on ubuntu-24.04: src/Arguments.php#L260
Escaped Mutant for Mutator "Continue_": @@ @@ $args = $id; $args[] = $name; $this->handleDefaultNested($parameter, ...$args); - continue; + break; } $current =& $this->arguments; foreach ($id as $key) {
PHP 8.1 test on ubuntu-24.04: src/Arguments.php#L270
Escaped Mutant for Mutator "Continue_": @@ @@ $current =& $current[$key]; } if (!is_array($current)) { - continue; + break; } if (array_key_exists($name, $current)) { unset($current);
PHP 8.1 test on ubuntu-24.04: src/Arguments.php#L275
Escaped Mutant for Mutator "Continue_": @@ @@ } if (array_key_exists($name, $current)) { unset($current); - continue; + break; } if ($parameter->default() !== null) { $current[$name] = $parameter->default();
PHP 8.1 test on ubuntu-24.04: src/Arguments.php#L288
Escaped Mutant for Mutator "UnwrapArrayKeys": @@ @@ if ($this->parameters()->requiredKeys()->count() <= $this->count) { return; } - $argumentKeys = array_keys($this->arguments); + $argumentKeys = $this->arguments; $missingNamed = array_diff($this->parameters()->keys(), $argumentKeys); $missingPositional = array_diff(array_keys($this->parameters()->keys()), $argumentKeys); $missingPositional = array_map(fn(int $key) => $this->parameters()->keys()[$key], $missingPositional);
PHP 8.1 test on ubuntu-24.04: src/Arguments.php#L289
Escaped Mutant for Mutator "UnwrapArrayDiff": @@ @@ return; } $argumentKeys = array_keys($this->arguments); - $missingNamed = array_diff($this->parameters()->keys(), $argumentKeys); + $missingNamed = $this->parameters()->keys(); $missingPositional = array_diff(array_keys($this->parameters()->keys()), $argumentKeys); $missingPositional = array_map(fn(int $key) => $this->parameters()->keys()[$key], $missingPositional); $missing = array_unique(array_merge($missingNamed, $missingPositional));