Skip to content

Commit a4aafca

Browse files
Fix DeprecationErrorHandler on PHP 5.3
1 parent 27ba4b2 commit a4aafca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static function register($mode = false)
8181

8282
exit(1);
8383
}
84-
if ('legacy' !== $group && self::MODE_WEAK !== $mode) {
84+
if ('legacy' !== $group && DeprecationErrorHandler::MODE_WEAK !== $mode) {
8585
$ref = &$deprecations[$group][$msg]['count'];
8686
++$ref;
8787
$ref = &$deprecations[$group][$msg][$class.'::'.$method];
@@ -147,7 +147,7 @@ public static function register($mode = false)
147147
if (!empty($notices)) {
148148
echo "\n";
149149
}
150-
if (self::MODE_WEAK !== $mode && self::MODE_WEAK_VERBOSE !== $mode && ($deprecations['unsilenced'] || $deprecations['remaining'] || $deprecations['other'])) {
150+
if (DeprecationErrorHandler::MODE_WEAK !== $mode && DeprecationErrorHandler::MODE_WEAK_VERBOSE !== $mode && ($deprecations['unsilenced'] || $deprecations['remaining'] || $deprecations['other'])) {
151151
exit(1);
152152
}
153153
});

0 commit comments

Comments
 (0)