From 1066aa03e8cc56bb69c30fbc9654984360195ac5 Mon Sep 17 00:00:00 2001 From: whwyy Date: Tue, 26 Dec 2023 17:41:03 +0800 Subject: [PATCH] eee --- ActiveQuery.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ActiveQuery.php b/ActiveQuery.php index b6e1a66..841fdf4 100644 --- a/ActiveQuery.php +++ b/ActiveQuery.php @@ -89,9 +89,7 @@ class ActiveQuery extends QueryTrait implements ISqlBuilder */ public function chunk(int $size, Closure $closure): void { - if ($this->offset === -1) { - $this->offset = 0; - } + if ($this->offset === -1) $this->offset = 0; $data = $this->offset($this->offset)->limit($size)->get(); if (!$data || $data->isEmpty()) { return;