Skip to content

Commit fdc5965

Browse files
committed
fix: allow nulls in prependReal
1 parent 0fdf7a5 commit fdc5965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bag/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function prepend($value, $key = null): self
6767
/**
6868
* @inheritDoc
6969
*/
70-
protected function prependReal(mixed $value, string|int $key): static
70+
protected function prependReal(mixed $value, string|int|null $key): static
7171
{
7272
return parent::prepend($value, $key);
7373
}

0 commit comments

Comments
 (0)