Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Codeception\Lib\Connector\Laravel5;

use Exception;
use Throwable;
use Illuminate\Contracts\Debug\ExceptionHandler as ExceptionHandlerContract;

/**
Expand Down Expand Up @@ -42,32 +42,32 @@ public function exceptionHandlingDisabled($exceptionHandlingDisabled)
/**
* Report or log an exception.
*
* @param \Exception $e
* @param \Throwable $e
* @return void
*/
public function report(Exception $e)
public function report(Throwable $e)
{
$this->laravelExceptionHandler->report($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);

Expand Down Expand Up @@ -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);
}
Expand Down