diff --git a/http-handler/Abstracts/Handler.php b/http-handler/Abstracts/Handler.php index e076add9..2f0da962 100644 --- a/http-handler/Abstracts/Handler.php +++ b/http-handler/Abstracts/Handler.php @@ -29,6 +29,17 @@ abstract class Handler implements RequestHandlerInterface protected ?array $middlewares; + /** + * @param \Http\Handler\Handler $handler + * @param array|null $middlewares + */ + public function __construct(CHl $handler, ?array $middlewares) + { + $this->handler = $handler; + $this->middlewares = $middlewares; + } + + /** * @param \Kiri\Proxy\AspectProxy $aspectProxy */ diff --git a/http-server/Abstracts/PageNotFoundException.php b/http-server/Abstracts/PageNotFoundException.php index 3e829973..09b99498 100644 --- a/http-server/Abstracts/PageNotFoundException.php +++ b/http-server/Abstracts/PageNotFoundException.php @@ -3,6 +3,8 @@ namespace Server\Abstracts; +use JetBrains\PhpStorm\Pure; + /** * */ @@ -13,7 +15,7 @@ class PageNotFoundException extends \Exception /** * */ - public function __construct(int $code) + #[Pure] public function __construct(int $code) { parent::__construct('