Skip to content

Commit 2e21da9

Browse files
committed
Change to strict comparison
1 parent b7d7ca4 commit 2e21da9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Illuminate/Database/Query/Builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2214,7 +2214,7 @@ public function chunkById(int $count, callable $callback, string|null $column =
22142214

22152215
$countResults = count($results);
22162216

2217-
if ($countResults == 0) {
2217+
if ($countResults === 0) {
22182218
break;
22192219
}
22202220

@@ -2234,7 +2234,7 @@ public function chunkById(int $count, callable $callback, string|null $column =
22342234
unset($results);
22352235

22362236
$page++;
2237-
} while ($countResults == $count);
2237+
} while ($countResults === $count);
22382238

22392239
return true;
22402240
}

0 commit comments

Comments
 (0)