From cd9cc89726cfc134c618961ded1daca9c02f6348 Mon Sep 17 00:00:00 2001 From: lubiana Date: Tue, 8 Nov 2022 19:50:04 +0100 Subject: [PATCH] fix style errors --- app/src/Infrastructure/Event/DispatcherFactory.php | 1 + app/src/Infrastructure/Finder.php | 1 + app/src/Infrastructure/Route/Handler.php | 1 - app/src/Infrastructure/WebApp/Route/CachedResponse.php | 1 + 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/Infrastructure/Event/DispatcherFactory.php b/app/src/Infrastructure/Event/DispatcherFactory.php index 81960d7..195a47c 100644 --- a/app/src/Infrastructure/Event/DispatcherFactory.php +++ b/app/src/Infrastructure/Event/DispatcherFactory.php @@ -36,6 +36,7 @@ final class DispatcherFactory if ($data === false) { return []; } + /** @var Listener[] $listeners */ $listeners = unserialize($data); return $listeners; diff --git a/app/src/Infrastructure/Finder.php b/app/src/Infrastructure/Finder.php index 4fa4a06..a752e81 100644 --- a/app/src/Infrastructure/Finder.php +++ b/app/src/Infrastructure/Finder.php @@ -72,6 +72,7 @@ final class Finder if ($data === false) { return; } + /** @var class-string[] $result */ $result = unserialize($data); $this->classNames = $result; diff --git a/app/src/Infrastructure/Route/Handler.php b/app/src/Infrastructure/Route/Handler.php index a1a02f0..58a6d11 100644 --- a/app/src/Infrastructure/Route/Handler.php +++ b/app/src/Infrastructure/Route/Handler.php @@ -5,7 +5,6 @@ namespace Lubian\AttributeMagic\Infrastructure\Route; final class Handler { /** - * @param string $path * @param non-empty-string $handlerClass * @param non-empty-string $handlerMethod */ diff --git a/app/src/Infrastructure/WebApp/Route/CachedResponse.php b/app/src/Infrastructure/WebApp/Route/CachedResponse.php index 7b1983e..60d4a4b 100644 --- a/app/src/Infrastructure/WebApp/Route/CachedResponse.php +++ b/app/src/Infrastructure/WebApp/Route/CachedResponse.php @@ -21,6 +21,7 @@ final class CachedResponse /** @var Response|null $response */ $response = unserialize($serialized); $event->response = $response; + $event->stopped = true; }