|
|
@@ -191,10 +191,13 @@ class ErrorHandlerMiddleware
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- $skipLog = $this->getConfig('skipLog');
|
|
|
- if ($skipLog) {
|
|
|
- foreach ((array)$skipLog as $class) {
|
|
|
- if ($exception instanceof $class) {
|
|
|
+ $unwrapped = $exception instanceof PHP7ErrorException ?
|
|
|
+ $exception->getError() :
|
|
|
+ $exception;
|
|
|
+
|
|
|
+ if ($this->getConfig('skipLog')) {
|
|
|
+ foreach ((array)$this->getConfig('skipLog') as $class) {
|
|
|
+ if ($unwrapped instanceof $class) {
|
|
|
return;
|
|
|
}
|
|
|
}
|