8000 Don't use autoloader in class_exists() check · symfony/symfony@7c4fbf8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7c4fbf8

Browse files
committed
Don't use autoloader in class_exists() check
1 parent 8439029 commit 7c4fbf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public static function collectDeprecations($outputFile)
253253
if (E_USER_DEPRECATED !== $type && E_DEPRECATED !== $type) {
254254
// This can be registered before the PHPUnit error handler.
255255
if (!$previousErrorHandler) {
256-
$ErrorHandler = class_exists('PHPUnit_Util_ErrorHandler') ? 'PHPUnit_Util_ErrorHandler' : 'PHPUnit\Util\ErrorHandler';
256+
$ErrorHandler = class_exists('PHPUnit_Util_ErrorHandler', false) ? 'PHPUnit_Util_ErrorHandler' : 'PHPUnit\Util\ErrorHandler';
257257

258258
return $ErrorHandler::handleError($type, $msg, $file, $line, $context);
259259
} else {

0 commit comments

Comments
 (0)
0