Skip to content

Commit

Permalink
Change to strict comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulhp committed Sep 22, 2023
1 parent b7d7ca4 commit 2e21da9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2214,7 +2214,7 @@ public function chunkById(int $count, callable $callback, string|null $column =

$countResults = count($results);

if ($countResults == 0) {
if ($countResults === 0) {
break;
}

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

$page++;
} while ($countResults == $count);
} while ($countResults === $count);

return true;
}
Expand Down

0 comments on commit 2e21da9

Please sign in to comment.