8000 [PhpUnitBridge] Skip bootstrap for PHPUnit >=10 · symfony/symfony@1f84a82 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1f84a82

Browse files
committed
[PhpUnitBridge] Skip bootstrap for PHPUnit >=10
1 parent 17963ff commit 1f84a82

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Symfony/Bridge/PhpUnit/bootstrap.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
use Doctrine\Deprecations\Deprecation;
1414
use Symfony\Bridge\PhpUnit\DeprecationErrorHandler;
1515

16+
// Skip if we're using PHPUnit >=10
17+
if (class_exists(PHPUnit\Metadata\Metadata::class)) {
18+
return;
19+
}
20+
1621
// Detect if we need to serialize deprecations to a file.
1722
if (in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) && $file = getenv('SYMFONY_DEPRECATIONS_SERIALIZE')) {
1823
DeprecationErrorHandler::collectDeprecations($file);

0 commit comments

Comments
 (0)
0