Skip to content

Commit 893a171

Browse files
authored
Fix the dump method for LazyCollection (#33944)
1 parent ff34350 commit 893a171

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Traits/EnumeratesValues.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ public function dd(...$args)
181181
*/
182182
public function dump()
183183
{
184-
(new static(func_get_args()))
185-
->push($this)
184+
(new Collection(func_get_args()))
185+
->push($this->all())
186186
->each(function ($item) {
187187
VarDumper::dump($item);
188188
});

0 commit comments

Comments
 (0)