Skip to content

Commit 52cd5b6

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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)