Skip to content

Commit 2a28b95

Browse files
committed
Do not throw on E_DEPRECATED
1 parent b59e334 commit 2a28b95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/dep

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ set_error_handler(function ($severity, $message, $filename, $lineno) {
8181
if (error_reporting() == 0) {
8282
return;
8383
}
84+
if ($severity == E_DEPRECATED) {
85+
return;
86+
}
8487
if (error_reporting() & $severity) {
8588
throw new ErrorException($message, 0, $severity, $filename, $lineno);
8689
}

0 commit comments

Comments
 (0)