Injection lazy loading #554
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#L531
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
return $file;
}
$layoutFile = $file . '.' . $view->getDefaultExtension();
- if ($view->getDefaultExtension() !== 'php' && !is_file($layoutFile)) {
+ if ($view->getDefaultExtension() !== 'php' || !is_file($layoutFile)) {
$layoutFile = $file . '.php';
}
return $layoutFile;
|