Skip to content

Commit 7a23d71

Browse files
committed
Merge branch '8.x'
# Conflicts: # CHANGELOG-8.x.md # src/Illuminate/Filesystem/FilesystemAdapter.php # src/Illuminate/Foundation/Application.php # src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php # src/Illuminate/Support/Str.php # tests/Support/SupportCollectionTest.php
2 parents 00b8361 + e18d6e4 commit 7a23d71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LazyCollection.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ public function chunkWhile(callable $callback)
10711071
return new static(function () use ($callback) {
10721072
$iterator = $this->getIterator();
10731073

1074-
$chunk = new Collection();
1074+
$chunk = new Collection;
10751075

10761076
if ($iterator->valid()) {
10771077
$chunk[$iterator->key()] = $iterator->current();
@@ -1083,7 +1083,7 @@ public function chunkWhile(callable $callback)
10831083
if (! $callback($iterator->current(), $iterator->key(), $chunk)) {
10841084
yield new static($chunk);
10851085

1086-
$chunk = new Collection();
1086+
$chunk = new Collection;
10871087
}
10881088

10891089
$chunk[$iterator->key()] = $iterator->current();

0 commit comments

Comments
 (0)