From c805173600cdb4e4ed1640838eeb8abf03e89db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sat, 1 Apr 2023 15:56:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Collection.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/Collection.php b/Collection.php index 09becba..fb5c69c 100644 --- a/Collection.php +++ b/Collection.php @@ -171,9 +171,6 @@ class Collection extends AbstractCollection $array = []; /** @var Model $value */ foreach ($this as $value) { - if (!is_object($value)) { - continue; - } $array[] = $value->setWith($this->query->with)->toArray(); } $this->_item = [];