From 48e5be9649f84a06111f049cfabd677c0bfcd400 Mon Sep 17 00:00:00 2001 From: mscherer Date: Sun, 25 Feb 2024 00:41:01 +0100 Subject: [PATCH] Add casting for Finder. --- src/Model/Filter/Finder.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Model/Filter/Finder.php b/src/Model/Filter/Finder.php index 2108339c..8bafcaec 100644 --- a/src/Model/Filter/Finder.php +++ b/src/Model/Filter/Finder.php @@ -41,16 +41,13 @@ public function process(): bool $casts = $this->getConfig('cast'); foreach ($casts as $field => $toType) { $value = $args[$field] ?? null; - // Sanity check - if (!is_scalar($value)) { - continue; - } if (is_callable($toType)) { $value = $toType($value); } else { settype($value, $toType); } + $args[$field] = $value; }