8000 [PhpUnitBridge] Ignore deprecations about the annotation mapping driv… · symfony/symfony@ce09da1 · GitHub
[go: up one dir, main page]

Skip to content

Commit ce09da1

Browse files
[PhpUnitBridge] Ignore deprecations about the annotation mapping driver when it's not possible to move to the attribute driver yet
1 parent 1cceec1 commit ce09da1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Symfony/Bridge/PhpUnit/bootstrap.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Bridge\PhpUnit\DeprecationErrorHandler;
1515

1616
// Detect if we need to serialize deprecations to a file.
17-
if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true) && $file = getenv('SYMFONY_DEPRECATIONS_SERIALIZE')) {
17+
if (in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) && $file = getenv('SYMFONY_DEPRECATIONS_SERIALIZE')) {
1818
DeprecationErrorHandler::collectDeprecations($file);
1919

2020
return;
@@ -34,6 +34,11 @@
3434

3535
if (class_exists(Deprecation::class)) {
3636
Deprecation::withoutDeduplication();
37+
38+
if (\PHP_VERSION_ID < 80000) {
39+
// Ignore deprecations about the annotation mapping driver when it's not possible to move to the attribute driver yet
40+
Deprecation::ignoreDeprecations('https://github.com/doctrine/orm/issues/10098');
41+
}
3742
}
3843

3944
if (!class_exists(AnnotationRegistry::class, false) && class_exists(AnnotationRegistry::class)) {

0 commit comments

Comments
 (0)
0