Skip to content

Commit f8f3b2f

Browse files
committed
Update ConstantArrayTypeBuilder.php
1 parent e95381b commit f8f3b2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Type/Constant/ConstantArrayTypeBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class ConstantArrayTypeBuilder
3131
{
3232

3333
public const ARRAY_COUNT_LIMIT = 256;
34-
private const ARRAY_CLOSURES_COUNT_LIMIT = 16;
34+
private const CLOSURES_COUNT_LIMIT = 16;
3535

3636
private bool $degradeToGeneralArray = false;
3737

@@ -94,7 +94,7 @@ public function setOffsetValueType(?Type $offsetType, Type $valueType, bool $opt
9494
$numClosures++;
9595
}
9696

97-
if ($numClosures >= self::ARRAY_CLOSURES_COUNT_LIMIT) {
97+
if ($numClosures >= self::CLOSURES_COUNT_LIMIT) {
9898
$this->degradeClosures = true;
9999
$this->degradeToGeneralArray = true;
100100
$this->oversized = true;

0 commit comments

Comments
 (0)