Skip to content

Injection lazy loading #550

Injection lazy loading

Injection lazy loading #550

Triggered via pull request May 3, 2024 12:03
@vjikvjik
synchronize #107
lazy-injections
Status Success
Total duration 54s
Artifacts

mutation.yml

on: pull_request
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#L264
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#L264
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#L264
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#L287
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#L365
Escaped Mutant for Mutator "UnwrapArrayMerge": --- Original +++ New @@ @@ { $parameters = []; foreach ($this->getInjections(CommonParametersInjectionInterface::class) as $injection) { - $parameters = array_merge($parameters, $injection->getCommonParameters()); + $parameters = $injection->getCommonParameters(); } return $parameters; }
mutation / PHP 8.2-ubuntu-latest: src/ViewRenderer.php#L367
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ foreach ($this->getInjections(CommonParametersInjectionInterface::class) as $injection) { $parameters = array_merge($parameters, $injection->getCommonParameters()); } - return $parameters; + return count($parameters) > 1 ? array_slice($parameters, 0, 1, true) : $parameters; } /** * Gets the merged injection layout parameters.