Skip to content

Commit ad57d90

Browse files
committed
feat: Do not convert E_DEPRECATED errors to exceptions
1 parent 3a44d9f commit ad57d90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BaseComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static function setEnvironment(): void
6363
error_reporting(E_ALL);
6464

6565
set_error_handler(function (int $errno, string $errstr, string $errfile, int $errline): bool {
66-
if (!(error_reporting() & $errno) || $errno === E_USER_DEPRECATED) {
66+
if (!(error_reporting() & $errno) || $errno === E_USER_DEPRECATED || $errno === E_DEPRECATED) {
6767
// respect error_reporting() level
6868
// libraries used in custom components may emit notices that cannot be fixed
6969
return false;

0 commit comments

Comments
 (0)