Skip to content

Commit 14b237a

Browse files
committed
Merge pull request #1477 from xabbuh/drop-exception-type-hint
remove \Exception type hint
2 parents 5dec19d + 58acb99 commit 14b237a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Controller/ExceptionController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ public function __construct(
5454
* Converts an Exception to a Response.
5555
*
5656
* @param Request $request
57-
* @param \Exception $exception
57+
* @param \Exception|\Throwable $exception
5858
* @param DebugLoggerInterface|null $logger
5959
*
6060
* @throws \InvalidArgumentException
6161
*
6262
* @return Response
6363
*/
64-
public function showAction(Request $request, \Exception $exception, DebugLoggerInterface $logger = null)
64+
public function showAction(Request $request, $exception, DebugLoggerInterface $logger = null)
6565
{
6666
$currentContent = $this->getAndCleanOutputBuffering($request->headers->get('X-Php-Ob-Level', -1));
6767
$code = $this->getStatusCode($exception);

0 commit comments

Comments
 (0)