Skip to content

Commit e13658e

Browse files
authored
Fix #33395 PHP 5.3 compatibility
1 parent 028617b commit e13658e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DeprecationErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public static function collectDeprecations($outputFile)
308308
public static function getPhpUnitErrorHandler()
309309
{
310310
if (!isset(self::$isAtLeastPhpUnit83)) {
311-
self::$isAtLeastPhpUnit83 = class_exists(ErrorHandler::class) && method_exists(ErrorHandler::class, '__invoke');
311+
self::$isAtLeastPhpUnit83 = class_exists('PHPUnit\Util\ErrorHandler') && method_exists('PHPUnit\Util\ErrorHandler', '__invoke');
312312
}
313313
if (!self::$isAtLeastPhpUnit83) {
314314
return (class_exists('PHPUnit_Util_ErrorHandler', false) ? 'PHPUnit_Util_' : 'PHPUnit\Util\\').'ErrorHandler::handleError';

0 commit comments

Comments
 (0)