Skip to content

Update yiisoft/view requirement from ^6.0|^7.0|^8.0 to ^10.0.0 (#77) #323

Update yiisoft/view requirement from ^6.0|^7.0|^8.0 to ^10.0.0 (#77)

Update yiisoft/view requirement from ^6.0|^7.0|^8.0 to ^10.0.0 (#77) #323

Triggered via push July 4, 2024 08:13
Status Success
Total duration 35s
Artifacts

mutation.yml

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

Annotations

6 warnings
mutation / PHP 8.1-ubuntu-latest: src/ViewRenderer.php#L33
Escaped Mutant for Mutator "UnwrapStrReplace": --- Original +++ New @@ @@ { $environment = $this->environment; $renderer = function () use($view, $template, $parameters, $environment) : void { - $template = str_replace('\\', '/', $template); + $template = $template; $basePath = str_replace('\\', '/', $view->getBasePath()); $file = str_replace($basePath, '', $template); echo $environment->render($file, array_merge($parameters, ['this' => $view]));
mutation / PHP 8.1-ubuntu-latest: src/ViewRenderer.php#L34
Escaped Mutant for Mutator "UnwrapStrReplace": --- Original +++ New @@ @@ $environment = $this->environment; $renderer = function () use($view, $template, $parameters, $environment) : void { $template = str_replace('\\', '/', $template); - $basePath = str_replace('\\', '/', $view->getBasePath()); + $basePath = $view->getBasePath(); $file = str_replace($basePath, '', $template); echo $environment->render($file, array_merge($parameters, ['this' => $view])); };
mutation / PHP 8.1-ubuntu-latest: src/ViewRenderer.php#L37
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ $template = str_replace('\\', '/', $template); $basePath = str_replace('\\', '/', $view->getBasePath()); $file = str_replace($basePath, '', $template); - echo $environment->render($file, array_merge($parameters, ['this' => $view])); + echo $environment->render($file, array_merge($parameters, [])); }; $obInitialLevel = ob_get_level(); ob_start();
mutation / PHP 8.1-ubuntu-latest: src/ViewRenderer.php#L37
Escaped Mutant for Mutator "UnwrapArrayMerge": --- Original +++ New @@ @@ $template = str_replace('\\', '/', $template); $basePath = str_replace('\\', '/', $view->getBasePath()); $file = str_replace($basePath, '', $template); - echo $environment->render($file, array_merge($parameters, ['this' => $view])); + echo $environment->render($file, $parameters); }; $obInitialLevel = ob_get_level(); ob_start();
mutation / PHP 8.1-ubuntu-latest: src/ViewRenderer.php#L42
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ }; $obInitialLevel = ob_get_level(); ob_start(); - ob_implicit_flush(false); + ob_implicit_flush(true); try { /** @psalm-suppress PossiblyInvalidFunctionCall,PossiblyNullFunctionCall */ $renderer->bindTo($view)();
mutation / PHP 8.1-ubuntu-latest: src/ViewRenderer.php#L42
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ }; $obInitialLevel = ob_get_level(); ob_start(); - ob_implicit_flush(false); + try { /** @psalm-suppress PossiblyInvalidFunctionCall,PossiblyNullFunctionCall */ $renderer->bindTo($view)();