Skip to content

Commit 8128489

Browse files
committed
Add getter to ArrayShape
1 parent 181f43a commit 8128489

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/PseudoTypes/ArrayShape.php

+8
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ public function __construct(ArrayShapeItem ...$items)
3232
$this->items = $items;
3333
}
3434

35+
/**
36+
* @return ArrayShapeItem[]
37+
*/
38+
public function getItems(): array
39+
{
40+
return $this->items;
41+
}
42+
3543
public function underlyingType(): Type
3644
{
3745
return new Array_(new Mixed_(), new ArrayKey());

0 commit comments

Comments
 (0)