Skip to content

Commit

Permalink
Merge pull request #68 from smoench/patch-2
Browse files Browse the repository at this point in the history
Align `BrefKernel::handle` method signature with the `Symfony\Component\HttpKernel\HttpKernelInterface`
  • Loading branch information
mnapoli authored Feb 20, 2024
2 parents 0b2ecdb + 4ccdd5d commit 1bab91b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/BrefKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());

Expand Down

0 comments on commit 1bab91b

Please sign in to comment.