Fix #33395 PHP 5.3 compatibility
This commit is contained in:
parent
720ffd869e
commit
dede158e8a
@ -308,7 +308,7 @@ class DeprecationErrorHandler
|
||||
public static function getPhpUnitErrorHandler()
|
||||
{
|
||||
if (!isset(self::$isAtLeastPhpUnit83)) {
|
||||
self::$isAtLeastPhpUnit83 = class_exists(ErrorHandler::class) && method_exists(ErrorHandler::class, '__invoke');
|
||||
self::$isAtLeastPhpUnit83 = class_exists('PHPUnit\Util\ErrorHandler') && method_exists('PHPUnit\Util\ErrorHandler', '__invoke');
|
||||
}
|
||||
if (!self::$isAtLeastPhpUnit83) {
|
||||
return (class_exists('PHPUnit_Util_ErrorHandler', false) ? 'PHPUnit_Util_' : 'PHPUnit\Util\\').'ErrorHandler::handleError';
|
||||
|
Reference in New Issue
Block a user