8000 minor #20334 [PhpUnitBridge] Fix undefined variable (romainneutron) · symfony/symfony@a70e033 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a70e033

Browse files
minor #20334 [PhpUnitBridge] Fix undefined variable (romainneutron)
This PR was merged into the 3.1 branch. Discussion ---------- [PhpUnitBridge] Fix undefined variable | Q | A | ------------- | --- | Branch? | 3.1 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | N/A | License | MIT Otherwise `$mode` is not defined on line 115 Commits ------- c4cc392 [PhpUnitBridge] Fix undefined variable
2 parents a149403 + c4cc392 commit a70e033

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)
0