Skip to content

Commit b3a6d39

Browse files
committed
Handle invalid Attribute flags
1 parent d0120d7 commit b3a6d39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Reflection/ClassReflection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ private function findAttributeFlags(): ?int
10821082
}
10831083

10841084
if (!$flagType instanceof ConstantIntegerType) {
1085-
throw new ShouldNotHappenException();
1085+
return null;
10861086
}
10871087

10881088
return $flagType->getValue();

0 commit comments

Comments
 (0)