From 2e21da90f01aa9d5cb3e26fabf0f296342a6a5ce Mon Sep 17 00:00:00 2001 From: abdulhp Date: Fri, 22 Sep 2023 11:10:13 +0700 Subject: [PATCH] Change to strict comparison --- src/Illuminate/Database/Query/Builder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Database/Query/Builder.php b/src/Illuminate/Database/Query/Builder.php index 2e406e95..143b3277 100755 --- a/src/Illuminate/Database/Query/Builder.php +++ b/src/Illuminate/Database/Query/Builder.php @@ -2214,7 +2214,7 @@ public function chunkById(int $count, callable $callback, string|null $column = $countResults = count($results); - if ($countResults == 0) { + if ($countResults === 0) { break; } @@ -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; }