Skip to content

Commit d584cf9

Browse files
committed
Fix CS
1 parent f7f6e36 commit d584cf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)