Skip to content

Commit 1157a77

Browse files
committed
stan
1 parent 47ea8dc commit 1157a77

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Ast/Type/ArrayShapeNode.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,13 @@ public function __construct(array $items, bool $sealed = true, string $kind = se
3939
*/
4040
public function items(): array
4141
{
42-
return array_filter($this->items, static function ($item) {
42+
/**
43+
* @var array<ArrayShapeItemNode> $res
44+
*/
45+
$res = array_filter($this->items, static function ($item) {
4346
return $item instanceof ArrayShapeItemNode;
4447
});
48+
return $res;
4549
}
4650

4751
public function __toString(): string

0 commit comments

Comments
 (0)