Skip to content

Improve package configuration parameters (#119) #575

Improve package configuration parameters (#119)

Improve package configuration parameters (#119) #575

Triggered via push June 19, 2024 13:40
Status Success
Total duration 59s
Artifacts

mutation.yml

on: push
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
mutation / PHP 8.2-ubuntu-latest: src/Debug/WebViewCollector.php#L28
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ if (!$this->isActive()) { return; } - $this->renders[] = ['output' => $event->getResult(), 'file' => $event->getFile(), 'parameters' => $event->getParameters()]; + $this->renders[] = ['file' => $event->getFile(), 'parameters' => $event->getParameters()]; } private function reset() : void {
mutation / PHP 8.2-ubuntu-latest: src/Debug/WebViewCollector.php#L29
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ if (!$this->isActive()) { return; } - $this->renders[] = ['output' => $event->getResult(), 'file' => $event->getFile(), 'parameters' => $event->getParameters()]; + $this->renders[] = ['output' > $event->getResult(), 'file' => $event->getFile(), 'parameters' => $event->getParameters()]; } private function reset() : void {
mutation / PHP 8.2-ubuntu-latest: src/Debug/WebViewCollector.php#L30
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ if (!$this->isActive()) { return; } - $this->renders[] = ['output' => $event->getResult(), 'file' => $event->getFile(), 'parameters' => $event->getParameters()]; + $this->renders[] = ['output' => $event->getResult(), 'file' > $event->getFile(), 'parameters' => $event->getParameters()]; } private function reset() : void {
mutation / PHP 8.2-ubuntu-latest: src/Debug/WebViewCollector.php#L31
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ if (!$this->isActive()) { return; } - $this->renders[] = ['output' => $event->getResult(), 'file' => $event->getFile(), 'parameters' => $event->getParameters()]; + $this->renders[] = ['output' => $event->getResult(), 'file' => $event->getFile(), 'parameters' > $event->getParameters()]; } private function reset() : void {
mutation / PHP 8.2-ubuntu-latest: src/ViewRenderer.php#L262
Escaped Mutant for Mutator "UnwrapArrayMerge": --- Original +++ New @@ @@ public function withAddedInjections(object|string ...$injections) : self { $new = clone $this; - $new->setInjections(array_merge($this->injections, $injections)); + $new->setInjections($this->injections); return $new; } /**
mutation / PHP 8.2-ubuntu-latest: src/ViewRenderer.php#L262
Escaped Mutant for Mutator "UnwrapArrayMerge": --- Original +++ New @@ @@ public function withAddedInjections(object|string ...$injections) : self { $new = clone $this; - $new->setInjections(array_merge($this->injections, $injections)); + $new->setInjections($injections); return $new; } /**
mutation / PHP 8.2-ubuntu-latest: src/ViewRenderer.php#L262
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function withAddedInjections(object|string ...$injections) : self { $new = clone $this; - $new->setInjections(array_merge($this->injections, $injections)); + return $new; } /**
mutation / PHP 8.2-ubuntu-latest: src/ViewRenderer.php#L285
Escaped Mutant for Mutator "CloneRemoval": --- Original +++ New @@ @@ */ public function withLocale(string $locale) : self { - $new = clone $this; + $new = $this; $new->locale = $locale; return $new; }
mutation / PHP 8.2-ubuntu-latest: src/ViewRenderer.php#L422
Escaped Mutant for Mutator "Continue_": --- Original +++ New @@ @@ foreach ($this->getPreparedInjections() as $injection) { if ($injection instanceof $injectionInterface) { $result[] = $injection; - continue; + break; } if ($injection instanceof LayoutSpecificInjections && $injection->getLayout() === $layout) { foreach ($injection->getInjections() as $layoutInjection) {
mutation / PHP 8.2-ubuntu-latest: src/ViewRenderer.php#L543
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return $cache[$class]; } $regexp = '/((?<=controller\\\\|controllers\\\\)(?:[\\w\\\\]+)|(?:[a-z\\d]+))controller$/iU'; - if (!preg_match($regexp, $class, $m) || empty($m[1])) { + if (!preg_match($regexp, $class, $m) || empty($m[0])) { throw new RuntimeException('Cannot detect controller name.'); } $inflector = new Inflector();