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());