Skip to content

improve interface

improve interface #155

Triggered via push January 10, 2025 22:10
Status Success
Total duration 45s
Artifacts

test.yml

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

Annotations

16 warnings
PHP 8.1 test on ubuntu-24.04: src/Dependencies.php#L50
Escaped Mutant for Mutator "CloneRemoval": @@ @@ } public function withRoute(RouteInterface ...$route): self { - $new = clone $this; + $new = $this; foreach ($route as $item) { $new->addRoute($item); }
PHP 8.1 test on ubuntu-24.04: src/Dependencies.php#L78
Escaped Mutant for Mutator "ArrayOneItem": @@ @@ { $extracted = []; if (!$this->has($className)) { - return $extracted; + return count($extracted) > 1 ? array_slice($extracted, 0, 1, true) : $extracted; } $parameters = $this->get($className); $extracted = array_intersect_key($container, array_flip($parameters->keys()));
PHP 8.1 test on ubuntu-24.04: src/Dependencies.php#L81
Escaped Mutant for Mutator "UnwrapArrayIntersectKey": @@ @@ return $extracted; } $parameters = $this->get($className); - $extracted = array_intersect_key($container, array_flip($parameters->keys())); + $extracted = $container; return (new Arguments($parameters, $extracted))->toArray(); } private function addRoute(RouteInterface $route): void
PHP 8.1 test on ubuntu-24.04: src/Dependencies.php#L119
Escaped Mutant for Mutator "Continue_": @@ @@ } foreach ($parameters as $name => $parameter) { if (!$this->parameters->has($name)) { - continue; + break; } $existing = $this->parameters->get($name); try {
PHP 8.3 test on ubuntu-24.04: src/Dependencies.php#L50
Escaped Mutant for Mutator "CloneRemoval": @@ @@ } public function withRoute(RouteInterface ...$route): self { - $new = clone $this; + $new = $this; foreach ($route as $item) { $new->addRoute($item); }
PHP 8.3 test on ubuntu-24.04: src/Dependencies.php#L78
Escaped Mutant for Mutator "ArrayOneItem": @@ @@ { $extracted = []; if (!$this->has($className)) { - return $extracted; + return count($extracted) > 1 ? array_slice($extracted, 0, 1, true) : $extracted; } $parameters = $this->get($className); $extracted = array_intersect_key($container, array_flip($parameters->keys()));
PHP 8.3 test on ubuntu-24.04: src/Dependencies.php#L81
Escaped Mutant for Mutator "UnwrapArrayIntersectKey": @@ @@ return $extracted; } $parameters = $this->get($className); - $extracted = array_intersect_key($container, array_flip($parameters->keys())); + $extracted = $container; return (new Arguments($parameters, $extracted))->toArray(); } private function addRoute(RouteInterface $route): void
PHP 8.3 test on ubuntu-24.04: src/Dependencies.php#L119
Escaped Mutant for Mutator "Continue_": @@ @@ } foreach ($parameters as $name => $parameter) { if (!$this->parameters->has($name)) { - continue; + break; } $existing = $this->parameters->get($name); try {
PHP 8.2 test on ubuntu-24.04: src/Dependencies.php#L50
Escaped Mutant for Mutator "CloneRemoval": @@ @@ } public function withRoute(RouteInterface ...$route): self { - $new = clone $this; + $new = $this; foreach ($route as $item) { $new->addRoute($item); }
PHP 8.2 test on ubuntu-24.04: src/Dependencies.php#L78
Escaped Mutant for Mutator "ArrayOneItem": @@ @@ { $extracted = []; if (!$this->has($className)) { - return $extracted; + return count($extracted) > 1 ? array_slice($extracted, 0, 1, true) : $extracted; } $parameters = $this->get($className); $extracted = array_intersect_key($container, array_flip($parameters->keys()));
PHP 8.2 test on ubuntu-24.04: src/Dependencies.php#L81
Escaped Mutant for Mutator "UnwrapArrayIntersectKey": @@ @@ return $extracted; } $parameters = $this->get($className); - $extracted = array_intersect_key($container, array_flip($parameters->keys())); + $extracted = $container; return (new Arguments($parameters, $extracted))->toArray(); } private function addRoute(RouteInterface $route): void
PHP 8.2 test on ubuntu-24.04: src/Dependencies.php#L119
Escaped Mutant for Mutator "Continue_": @@ @@ } foreach ($parameters as $name => $parameter) { if (!$this->parameters->has($name)) { - continue; + break; } $existing = $this->parameters->get($name); try {
PHP 8.4 test on ubuntu-24.04: src/Dependencies.php#L50
Escaped Mutant for Mutator "CloneRemoval": @@ @@ } public function withRoute(RouteInterface ...$route): self { - $new = clone $this; + $new = $this; foreach ($route as $item) { $new->addRoute($item); }
PHP 8.4 test on ubuntu-24.04: src/Dependencies.php#L78
Escaped Mutant for Mutator "ArrayOneItem": @@ @@ { $extracted = []; if (!$this->has($className)) { - return $extracted; + return count($extracted) > 1 ? array_slice($extracted, 0, 1, true) : $extracted; } $parameters = $this->get($className); $extracted = array_intersect_key($container, array_flip($parameters->keys()));
PHP 8.4 test on ubuntu-24.04: src/Dependencies.php#L81
Escaped Mutant for Mutator "UnwrapArrayIntersectKey": @@ @@ return $extracted; } $parameters = $this->get($className); - $extracted = array_intersect_key($container, array_flip($parameters->keys())); + $extracted = $container; return (new Arguments($parameters, $extracted))->toArray(); } private function addRoute(RouteInterface $route): void
PHP 8.4 test on ubuntu-24.04: src/Dependencies.php#L119
Escaped Mutant for Mutator "Continue_": @@ @@ } foreach ($parameters as $name => $parameter) { if (!$this->parameters->has($name)) { - continue; + break; } $existing = $this->parameters->get($name); try {