Skip to content

Commit ddfa734

Browse files
Add 16 limit
1 parent 3ab7c5c commit ddfa734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/ObjectType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ public function toArray(): Type
695695
} while ($classReflection !== null);
696696

697697
if (!$isFinal) {
698-
if (count($arrayKeys) === 0) {
698+
if (count($arrayKeys) === 0 || count($arrayKeys) > 16) {
699699
return new ArrayType(new MixedType(), new MixedType());
700700
}
701701

0 commit comments

Comments
 (0)