Skip to content

Commit c060a26

Browse files
committed
Creating array strict list collection.
1 parent 492d983 commit c060a26

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/WS/Utils/Collections/CollectionFactory.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ public static function from(array $values): Collection
6363
return new ArrayList($values);
6464
}
6565

66+
public static function fromStrict(array $values): Collection
67+
{
68+
return new ArrayStrictList($values);
69+
}
70+
6671
public static function fromIterable(iterable $iterable): Collection
6772
{
6873
$list = ArrayList::of();

0 commit comments

Comments
 (0)