Skip to content

Commit d5ab07f

Browse files
[Bridge/PhpUnit] Handle native E_DEPRECATED
1 parent 18c324f commit d5ab07f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DeprecationErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static function register($mode = 0)
6868
'other' => array(),
6969
);
7070
$deprecationHandler = function ($type, $msg, $file, $line, $context) use (&$deprecations, $getMode) {
71-
if (E_USER_DEPRECATED !== $type || DeprecationErrorHandler::MODE_DISABLED === $mode = $getMode()) {
71+
if ((E_USER_DEPRECATED !== $type && E_DEPRECATED !== $type) || DeprecationErrorHandler::MODE_DISABLED === $mode = $getMode()) {
7272
return \PHPUnit_Util_ErrorHandler::handleError($type, $msg, $file, $line, $context);
7373
}
7474

0 commit comments

Comments
 (0)