Injection lazy loading #548
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/InjectionContainer.php#L22
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
public function get(string $id) : object
{
$result = $this->container->get($id);
- return is_object($result) ? $result : throw new RuntimeException('Injection should be object, ' . get_debug_type($result) . ' given.');
+ return is_object($result) ? $result : throw new RuntimeException(get_debug_type($result) . 'Injection should be object, ' . ' given.');
}
}
|
mutation / PHP 8.2-ubuntu-latest:
src/InjectionContainer.php#L22
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
public function get(string $id) : object
{
$result = $this->container->get($id);
- return is_object($result) ? $result : throw new RuntimeException('Injection should be object, ' . get_debug_type($result) . ' given.');
+ return is_object($result) ? $result : throw new RuntimeException(get_debug_type($result) . ' given.');
}
}
|
mutation / PHP 8.2-ubuntu-latest:
src/InjectionContainer.php#L22
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
public function get(string $id) : object
{
$result = $this->container->get($id);
- return is_object($result) ? $result : throw new RuntimeException('Injection should be object, ' . get_debug_type($result) . ' given.');
+ return is_object($result) ? $result : throw new RuntimeException('Injection should be object, ' . ' given.');
}
}
|
mutation / PHP 8.2-ubuntu-latest:
src/InjectionContainer.php#L22
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
public function get(string $id) : object
{
$result = $this->container->get($id);
- return is_object($result) ? $result : throw new RuntimeException('Injection should be object, ' . get_debug_type($result) . ' given.');
+ return is_object($result) ? $result : throw new RuntimeException('Injection should be object, ' . ' given.' . get_debug_type($result));
}
}
|
mutation / PHP 8.2-ubuntu-latest:
src/InjectionContainer.php#L22
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
public function get(string $id) : object
{
$result = $this->container->get($id);
- return is_object($result) ? $result : throw new RuntimeException('Injection should be object, ' . get_debug_type($result) . ' given.');
+ return is_object($result) ? $result : throw new RuntimeException('Injection should be object, ' . get_debug_type($result));
}
}
|
mutation / PHP 8.2-ubuntu-latest:
src/ViewRenderer.php#L268
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;
}
/**
|