mirror of
https://github.com/filp/whoops.git
synced 2026-09-05 06:57:29 +00:00
Merge branch 'feature/error-control-operator-support'
This commit is contained in:
+22
-7
@@ -335,13 +335,28 @@ class Run
|
||||
*/
|
||||
public function handleShutdown()
|
||||
{
|
||||
if($error = error_get_last()) {
|
||||
$this->handleError(
|
||||
$error["type"],
|
||||
$error["message"],
|
||||
$error["file"],
|
||||
$error["line"]
|
||||
);
|
||||
if ($error = error_get_last()) {
|
||||
|
||||
if (
|
||||
in_array(
|
||||
$error['type'],
|
||||
array(
|
||||
E_ERROR,
|
||||
E_PARSE,
|
||||
E_CORE_ERROR,
|
||||
E_CORE_WARNING,
|
||||
E_COMPILE_ERROR,
|
||||
E_COMPILE_WARNING
|
||||
)
|
||||
)
|
||||
) {
|
||||
$this->handleError(
|
||||
$error['type'],
|
||||
$error['message'],
|
||||
$error['file'],
|
||||
$error['line']
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user