Merge branch '4.4' into 5.2
* 4.4: Fix CS Avoid triggering the autoloader in Deprecation::isLegacy()
This commit is contained in:
commit
b57eaf4907
@ -14,12 +14,13 @@ namespace Symfony\Bridge\PhpUnit\DeprecationErrorHandler;
|
|||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use PHPUnit\Framework\TestSuite;
|
use PHPUnit\Framework\TestSuite;
|
||||||
use PHPUnit\Metadata\Api\Groups;
|
use PHPUnit\Metadata\Api\Groups;
|
||||||
use PHPUnit\Util\Error\Handler;
|
|
||||||
use PHPUnit\Util\Test;
|
use PHPUnit\Util\Test;
|
||||||
use Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerFor;
|
use Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerFor;
|
||||||
use Symfony\Component\Debug\DebugClassLoader as LegacyDebugClassLoader;
|
use Symfony\Component\Debug\DebugClassLoader as LegacyDebugClassLoader;
|
||||||
use Symfony\Component\ErrorHandler\DebugClassLoader;
|
use Symfony\Component\ErrorHandler\DebugClassLoader;
|
||||||
|
|
||||||
|
class_exists(Groups::class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
@ -203,7 +204,7 @@ class Deprecation
|
|||||||
}
|
}
|
||||||
|
|
||||||
$method = $this->originatingMethod();
|
$method = $this->originatingMethod();
|
||||||
$groups = class_exists(Groups::class) ? [new Groups(), 'groups'] : [Test::class, 'getGroups'];
|
$groups = class_exists(Groups::class, false) ? [new Groups(), 'groups'] : [Test::class, 'getGroups'];
|
||||||
|
|
||||||
return 0 === strpos($method, 'testLegacy')
|
return 0 === strpos($method, 'testLegacy')
|
||||||
|| 0 === strpos($method, 'provideLegacy')
|
|| 0 === strpos($method, 'provideLegacy')
|
||||||
|
Reference in New Issue
Block a user