From 8ef1384c2b4a1136620f8328efc50afbc4e9d0b2 Mon Sep 17 00:00:00 2001 From: wuque <91714264+huangbule2024@users.noreply.github.com> Date: Fri, 14 Jun 2024 14:37:57 +0800 Subject: [PATCH] Update FilterTrait.php --- src/Traits/FilterTrait.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Traits/FilterTrait.php b/src/Traits/FilterTrait.php index 9870bf1..688208a 100644 --- a/src/Traits/FilterTrait.php +++ b/src/Traits/FilterTrait.php @@ -201,8 +201,6 @@ private function halfOpenFilter($qr, $column, $param) if (!is_array($arr = $param[$column])) { $arr = explode(',', $arr); } - if (count($arr) != 2) - throw new InvalidArgumentException($column . " corresponding values must be throughput or comma separated."); if (!empty($arr[0]) && !empty($arr[1])) { return $qr->where($column, '>=', $arr[0])->where($column, '<', $arr[1]);