Update PHPStan packages #189
Annotations
5 warnings
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]();
|
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);
|
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;
}
}
|
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);
}
}
|
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]();
|
The logs for this run have expired and are no longer available.
Loading