Skip to content

Update PHPStan packages #206

Update PHPStan packages

Update PHPStan packages #206

Triggered via pull request November 17, 2023 15:41
Status Failure
Total duration 32s
Artifacts

test.yml

on: pull_request
Matrix: Infection mutation testing
Matrix: PHPStan static analysis
Matrix: Psalm static analysis
Matrix: PHP-CS-Fixer coding standards
Matrix: PHPUnit unit tests
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 5 warnings
PHPStan static analysis (8.0): src/ActionContainer.php#L58
PHPDoc tag @var with type Mmm\Inert\Action is not subtype of native type object.
PHPStan static analysis (8.0)
Process completed with exit code 1.
Infection mutation testing (8.0): src/ActionContainer.php#L45
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ try { if ($this->factories[$id] instanceof Closure) { /** @var Action $action */ - $action = call_user_func_array($this->factories[$id], [$this->serviceContainer]); + $action = call_user_func_array($this->factories[$id], []); } else { /** @psalm-suppress MixedMethodCall */ $actionOrFactory = new $this->factories[$id]();
Infection mutation testing (8.0): src/Application.php#L27
Escaped Mutant for Mutator "CastString": --- Original +++ New @@ @@ * @phpstan-ignore-next-line * @psalm-suppress PossiblyInvalidCast */ - $name = (string) ($_GET['action'] ?? 'index'); + $name = $_GET['action'] ?? 'index'; $response = $this->actionContainer->get($name)->run(); } catch (Exception $ex) { $errorAction = new ErrorAction($ex);
Infection mutation testing (8.0): src/Application.php#L31
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $response = $this->actionContainer->get($name)->run(); } catch (Exception $ex) { $errorAction = new ErrorAction($ex); - $errorAction->setViewFolder($this->viewFolder); + $response = $errorAction->run(); } return $response; } }
Infection mutation testing (8.0): src/RenderableTrait.php#L37
Escaped Mutant for Mutator "CastString": --- Original +++ New @@ @@ extract($args); ob_start(); require $viewFile; - $content = (string) ob_get_contents(); + $content = ob_get_contents(); ob_end_clean(); return new Response($content); } }
Infection mutation testing (8.0): src/ServiceContainer.php#L40
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ try { if ($this->factories[$id] instanceof Closure) { /** @var object $service */ - $service = call_user_func_array($this->factories[$id], [$this]); + $service = call_user_func_array($this->factories[$id], []); } else { /** @psalm-suppress MixedMethodCall */ $serviceOrFactory = new $this->factories[$id]();