Skip to content

Commit c4cc392

Browse files
committed
[PhpUnitBridge] Fix undefined variable
Otherwise `$mode` is not defined on line 115
1 parent a149403 commit c4cc392

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ 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+
$mode = $getMode();
72+
if (E_USER_DEPRECATED !== $type || DeprecationErrorHandler::MODE_DISABLED === $mode) {
7273
return \PHPUnit_Util_ErrorHandler::handleError($type, $msg, $file, $line, $context);
7374
}
7475

0 commit comments

Comments
 (0)