Skip to content

Commit e820faa

Browse files
authored
[Laravel] Fix missing declaration shouldReport
shouldReport() declaration has been added to Illuminate\Contracts\Debug\ExceptionHandler in Laravel 5.8
1 parent 0d33bec commit e820faa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Codeception/Lib/Connector/Laravel5/ExceptionHandlerDecorator.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,17 @@ public function report(Exception $e)
4949
{
5050
$this->laravelExceptionHandler->report($e);
5151
}
52+
53+
/**
54+
* Determine if the exception should be reported.
55+
*
56+
* @param \Exception $e
57+
* @return bool
58+
*/
59+
public function shouldReport(Exception $e)
60+
{
61+
return $this->exceptionHandlingDisabled;
62+
}
5263

5364
/**
5465
* @param $request

0 commit comments

Comments
 (0)