Skip to content

Commit 058a551

Browse files
committed
secure getCollection method with getting copy of stream collection
1 parent 589b2f4 commit 058a551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WS/Utils/Collections/SerialStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public function reduce(callable $accumulator)
274274

275275
public function getCollection(): Collection
276276
{
277-
return $this->list;
277+
return $this->list->copy();
278278
}
279279

280280
private function emptyList(): Collection

0 commit comments

Comments
 (0)