From 851d1a2a468397ce2a297f766d3a0b1eb1e9c453 Mon Sep 17 00:00:00 2001 From: JiangDev Date: Wed, 6 Mar 2024 05:33:12 +0800 Subject: [PATCH] Update Validate.php fix bug of : Argument #3 ($options) must be of type array|int --- src/Validate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validate.php b/src/Validate.php index 1f5c23a..15a180b 100644 --- a/src/Validate.php +++ b/src/Validate.php @@ -998,7 +998,7 @@ public function filter($value, $rule) $param = isset($rule[1]) ? $rule[1] : null; $rule = $rule[0]; } else { - $param = null; + $param = []; } return false !== filter_var($value, is_int($rule) ? $rule : filter_id($rule), $param);