We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a32fde9 commit f1f37a8Copy full SHA for f1f37a8
src/Symfony/Component/HttpKernel/ControllerMetadata/ArgumentMetadataFactory.php
@@ -38,7 +38,7 @@ public function createArgumentMetadata($controller): array
38
39
foreach ($reflection->getParameters() as $param) {
40
$attribute = null;
41
- if (method_exists($param, 'getAttributes')) {
+ if (\PHP_VERSION_ID >= 80000) {
42
$reflectionAttributes = $param->getAttributes(ArgumentInterface::class, \ReflectionAttribute::IS_INSTANCEOF);
43
44
if (\count($reflectionAttributes) > 1) {
0 commit comments