From 4ccdd5d861043dde21d13dc3087d9b490b3dc55e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20M=C3=B6nch?= Date: Mon, 19 Feb 2024 15:33:01 +0100 Subject: [PATCH] Align `BrefKernel::handle` method signature with the `Symfony\Component\HttpKernel\HttpKernelInterface` --- src/BrefKernel.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BrefKernel.php b/src/BrefKernel.php index 898e851..f51789c 100644 --- a/src/BrefKernel.php +++ b/src/BrefKernel.php @@ -3,6 +3,7 @@ namespace Bref\SymfonyBridge; use Symfony\Component\Filesystem\Filesystem; +use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\Kernel; @@ -41,7 +42,7 @@ public function getLogDir(): string * * @see https://github.com/brefphp/symfony-bridge/pull/37 */ - public function handle($request, $type = HttpKernelInterface::MAIN_REQUEST, $catch = true): Response + public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response { $this->prepareCacheDir(parent::getCacheDir(), $this->getCacheDir());