From 9e3c82086cdadb4524a0770eeb20066c9b1ff25e Mon Sep 17 00:00:00 2001 From: zj Date: Thu, 13 Aug 2026 10:14:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=86=E9=A1=B5=E5=9B=9E?= =?UTF-8?q?=E8=B0=83each=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model.php b/src/Model.php index 60092f0..8869a4c 100644 --- a/src/Model.php +++ b/src/Model.php @@ -142,7 +142,7 @@ abstract class Model extends HyperfModel implements CacheableInterface $size = max(1, min(100, $size)); $result = $query->paginate($size, ['*'], 'page', $page); - if (is_callable($eachCallback) && method_exists($result, 'each')) { + if (is_callable($eachCallback)) { $result->each($eachCallback); } return [