From 93e5ae4fd43abff675589c98db211b77362e051e Mon Sep 17 00:00:00 2001 From: Davide Iadeluca Date: Wed, 20 Nov 2024 00:21:38 +0100 Subject: [PATCH] chore: change syntax --- extensions/tags/src/TagCountValidator.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/tags/src/TagCountValidator.php b/extensions/tags/src/TagCountValidator.php index 5a72d019dc..52b75a67f2 100644 --- a/extensions/tags/src/TagCountValidator.php +++ b/extensions/tags/src/TagCountValidator.php @@ -97,10 +97,10 @@ protected function getRules() ] ]; - if ( $min === $max ) { - Arr::add($rules, $key, "size:{$min}"); + if ($min === $max) { + $rules[$key][] = "size:{$min}"; } else { - Arr::add($rules, $key, "between:{$min},{$max}"); + $rules[$key][] = "between:{$min},{$max}"; } return $rules;