Skip to content

Commit 31612d3

Browse files
committed
Ignoring errors suppressed by @
1 parent d611727 commit 31612d3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

system/Debug/Exceptions.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ public function exceptionHandler(\Throwable $exception)
174174
*/
175175
public function errorHandler(int $severity, string $message, string $file = null, int $line = null, $context = null)
176176
{
177+
if (! (\error_reporting() & $severity)) {
178+
return;
179+
}
180+
177181
// Convert it to an exception and pass it along.
178182
throw new \ErrorException($message, 0, $severity, $file, $line);
179183
}

0 commit comments

Comments
 (0)