We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c92e2b commit a2646e6Copy full SHA for a2646e6
src/Type/Constant/ConstantArrayType.php
@@ -171,7 +171,7 @@ public function getIterableValueType(): Type
171
172
$count = count($this->valueTypes);
173
if ($count === 0) {
174
- return new NeverType(true);
+ return $this->iterableValueType = new NeverType(true);
175
}
176
177
if ($count > 16) {
@@ -184,11 +184,11 @@ public function getIterableValueType(): Type
184
185
186
if ($onlyClosureValues) {
187
- return new CallableType();
+ return $this->iterableValueType = new CallableType();
188
189
190
191
- return TypeCombinator::union(...$this->valueTypes);
+ return $this->iterableValueType = TypeCombinator::union(...$this->valueTypes);
192
193
194
public function getKeyType(): Type
0 commit comments