Skip to content

Commit ed8c731

Browse files
Merge branch '3.3' into 3.4
* 3.3: Fix phpunit bridge
2 parents 8d179a3 + 3e3e74c commit ed8c731

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,10 @@ public static function collectDeprecations($outputFile)
254254
if ($previousErrorHandler) {
255255
return $previousErrorHandler($type, $msg, $file, $line, $context);
256256
}
257+
static $autoload = true;
257258

258-
$ErrorHandler = class_exists('PHPUnit_Util_ErrorHandler', false) ? 'PHPUnit_Util_ErrorHandler' : 'PHPUnit\Util\ErrorHandler';
259+
$ErrorHandler = class_exists('PHPUnit_Util_ErrorHandler', $autoload) ? 'PHPUnit_Util_ErrorHandler' : 'PHPUnit\Util\ErrorHandler';
260+
$autoload = false;
259261

260262
return $ErrorHandler::handleError($type, $msg, $file, $line, $context);
261263
}

0 commit comments

Comments
 (0)