Skip to content

Commit edbbcdb

Browse files
authored
Make Application@handle() meet Symfony 6's updated interface (#38413)
Add return type. This is a great use of our time.
1 parent 585b604 commit edbbcdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Illuminate/Foundation/Application.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use Illuminate\Support\Str;
2323
use RuntimeException;
2424
use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
25+
use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
2526
use Symfony\Component\HttpKernel\Exception\HttpException;
2627
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
2728
use Symfony\Component\HttpKernel\HttpKernelInterface;
@@ -959,7 +960,7 @@ protected function fireAppCallbacks(array $callbacks)
959960
/**
960961
* {@inheritdoc}
961962
*/
962-
public function handle(SymfonyRequest $request, int $type = self::MASTER_REQUEST, bool $catch = true)
963+
public function handle(SymfonyRequest $request, int $type = self::MAIN_REQUEST, bool $catch = true): SymfonyResponse
963964
{
964965
return $this[HttpKernelContract::class]->handle(Request::createFromBase($request));
965966
}

0 commit comments

Comments
 (0)