Skip to content

Commit 5c169c2

Browse files
Merge branch '5.4' into 6.0
* 5.4: (21 commits) Backport type fixes [Messenger] Added StopWorkerException [Workflown] Add support for getting updated context after a transition Fix CS fix annot Backport type fixes Fix CS Avoid triggering the autoloader in Deprecation::isLegacy() fix markdown markup Backport type fixes [TwigBundle] Improve comment on error silencing [SecurityBundle] Fix wrongly inverted condition [Notifier] Add MessageMedia Bridge uzb translation [DependencyInjection] Fix doc blocks [DependencyInjection] Turn $defaultDeprecationTemplate into a constant [SecurityBundle] Hide Security item if no firewall matched [GHA] restore phpunit-bridge job rethrow caught exception [Form] better form doc types to support static analysis ...
2 parents 7ba0755 + bd59ac7 commit 5c169c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

DeprecationErrorHandler/Deprecation.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
use PHPUnit\Framework\TestCase;
1515
use PHPUnit\Framework\TestSuite;
1616
use PHPUnit\Metadata\Api\Groups;
17-
use PHPUnit\Util\Error\Handler;
1817
use PHPUnit\Util\Test;
1918
use Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerFor;
2019
use Symfony\Component\Debug\DebugClassLoader as LegacyDebugClassLoader;
2120
use Symfony\Component\ErrorHandler\DebugClassLoader;
2221

22+
class_exists(Groups::class);
23+
2324
/**
2425
* @internal
2526
*/
@@ -203,7 +204,7 @@ public function isLegacy()
203204
}
204205

205206
$method = $this->originatingMethod();
206-
$groups = class_exists(Groups::class) ? [new Groups(), 'groups'] : [Test::class, 'getGroups'];
207+
$groups = class_exists(Groups::class, false) ? [new Groups(), 'groups'] : [Test::class, 'getGroups'];
207208

208209
return 0 === strpos($method, 'testLegacy')
209210
|| 0 === strpos($method, 'provideLegacy')

0 commit comments

Comments
 (0)