Update rector/rector requirement from ^0.17.0 to ^0.18.3 #508
Annotations
10 warnings
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
{
|
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
{
|
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
{
|
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
{
|
src/ViewRenderer.php#L66
Escaped Mutant for Mutator "UnwrapRtrim":
--- Original
+++ New
@@ @@
*/
public function __construct(private DataResponseFactoryInterface $responseFactory, private Aliases $aliases, private WebView $view, string $viewPath, private ?string $layout = null, private array $injections = [])
{
- $this->viewPath = rtrim($viewPath, '/');
+ $this->viewPath = $viewPath;
}
/**
* Returns a path to a base directory of view templates that is prefixed to the relative view name.
|
src/ViewRenderer.php#L246
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
public function withAddedInjections(object ...$injections) : self
{
$new = clone $this;
- $new->injections = array_merge($this->injections, $injections);
+ $new->injections = $this->injections;
return $new;
}
/**
|
src/ViewRenderer.php#L246
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
public function withAddedInjections(object ...$injections) : self
{
$new = clone $this;
- $new->injections = array_merge($this->injections, $injections);
+ $new->injections = $injections;
return $new;
}
/**
|
src/ViewRenderer.php#L269
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
*/
public function withLocale(string $locale) : self
{
- $new = clone $this;
+ $new = $this;
$new->locale = $locale;
return $new;
}
|
src/ViewRenderer.php#L348
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
$parameters = [];
foreach ($this->injections as $injection) {
if ($injection instanceof CommonParametersInjectionInterface) {
- $parameters = array_merge($parameters, $injection->getCommonParameters());
+ $parameters = $injection->getCommonParameters();
}
}
return $parameters;
|
src/ViewRenderer.php#L351
Escaped Mutant for Mutator "ArrayOneItem":
--- Original
+++ New
@@ @@
$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.
|
The logs for this run have expired and are no longer available.
Loading