10000 Fix CS · symfony/symfony@f1f37a8 · GitHub
[go: up one dir, main page]

Skip to content

Commit f1f37a8

Browse files
committed
Fix CS
1 parent a32fde9 commit f1f37a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/ControllerMetadata/ArgumentMetadataFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function createArgumentMetadata($controller): array
3838

3939
foreach ($reflection->getParameters() as $param) {
4040
$attribute = null;
41-
if (method_exists($param, 'getAttributes')) {
41+
if (\PHP_VERSION_ID >= 80000) {
4242
$reflectionAttributes = $param->getAttributes(ArgumentInterface::class, \ReflectionAttribute::IS_INSTANCEOF);
4343

4444
if (\count($reflectionAttributes) > 1) {

0 commit comments

Comments
 (0)
0