diff --git a/src/Codeception/Lib/Connector/Laravel5/ExceptionHandlerDecorator.php b/src/Codeception/Lib/Connector/Laravel5/ExceptionHandlerDecorator.php index 8114105..a3e24c9 100644 --- a/src/Codeception/Lib/Connector/Laravel5/ExceptionHandlerDecorator.php +++ b/src/Codeception/Lib/Connector/Laravel5/ExceptionHandlerDecorator.php @@ -1,7 +1,7 @@ laravelExceptionHandler->report($e); } @@ -53,21 +53,21 @@ public function report(Exception $e) /** * Determine if the exception should be reported. * - * @param \Exception $e + * @param \Throwable $e * @return bool */ - public function shouldReport(Exception $e) + public function shouldReport(Throwable $e) { return $this->exceptionHandlingDisabled; } /** * @param $request - * @param Exception $e + * @param Throwable $e * @return \Symfony\Component\HttpFoundation\Response - * @throws Exception + * @throws Throwable */ - public function render($request, Exception $e) + public function render($request, Throwable $e) { $response = $this->laravelExceptionHandler->render($request, $e); @@ -97,10 +97,10 @@ private function isSymfonyExceptionHandlerOutput($content) * Render an exception to the console. * * @param \Symfony\Component\Console\Output\OutputInterface $output - * @param \Exception $e + * @param \Throwable $e * @return void */ - public function renderForConsole($output, Exception $e) + public function renderForConsole($output, Throwable $e) { $this->laravelExceptionHandler->renderForConsole($output, $e); }