From ffae51bccf2f2ccc504bf22b23393d22194f3781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 9 Nov 2021 11:17:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Traits/QueryTrait.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Traits/QueryTrait.php b/src/Traits/QueryTrait.php index 9c1bc1e..6b4b769 100644 --- a/src/Traits/QueryTrait.php +++ b/src/Traits/QueryTrait.php @@ -923,6 +923,7 @@ trait QueryTrait private function addArray(array $array): static { foreach ($array as $key => $value) { + if (is_null($value)) continue; if (is_numeric($key)) { [$column, $opera, $value] = $this->opera(...$value);