Skip to content

Commit 61687a0

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Fix CS Compatibility with doctrine/annotations 2 [Console] Fix a test when pcntl is not available (following #48329) [FrameworkBundle] fix: fix typo about help
2 parents 3b7384f + 4ce2df9 commit 61687a0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Tests/Loader/AnnotationClassLoaderWithAnnotationsTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ protected function configureRoute(Route $route, \ReflectionClass $class, \Reflec
2626
{
2727
}
2828
};
29-
AnnotationRegistry::registerLoader('class_exists');
29+
if (method_exists(AnnotationRegistry::class, 'registerLoader')) {
30+
AnnotationRegistry::registerLoader('class_exists');
31+
}
3032
}
3133

3234
public function testDefaultRouteName()

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"symfony/yaml": "^5.4|^6.0",
2525
"symfony/expression-language": "^5.4|^6.0",
2626
"symfony/dependency-injection": "^5.4|^6.0",
27-
"doctrine/annotations": "^1.12",
27+
"doctrine/annotations": "^1.12|^2",
2828
"psr/log": "^1|^2|^3"
2929
},
3030
"conflict": {

0 commit comments

Comments
 (0)