Skip to content

Commit fd910dd

Browse files
authored
Merge branch refs/heads/1.9.x into 1.10.x
2 parents 61802de + 9334ff3 commit fd910dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Reflection/ClassReflection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,9 @@ private function findAttributeFlags(): ?int
11511151
$arguments[] = new Arg($expression, false, false, [], is_int($i) ? null : new Identifier($i));
11521152
}
11531153

1154+
if (!$attributeClass->hasConstructor()) {
1155+
return null;
1156+
}
11541157
$attributeConstructor = $attributeClass->getConstructor();
11551158
$attributeConstructorVariant = ParametersAcceptorSelector::selectSingle($attributeConstructor->getVariants());
11561159

0 commit comments

Comments
 (0)