Skip to content

Commit 93e5ae4

Browse files
chore: change syntax
1 parent e876da8 commit 93e5ae4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions/tags/src/TagCountValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ protected function getRules()
9797
]
9898
];
9999

100-
if ( $min === $max ) {
101-
Arr::add($rules, $key, "size:{$min}");
100+
if ($min === $max) {
101+
$rules[$key][] = "size:{$min}";
102102
} else {
103-
Arr::add($rules, $key, "between:{$min},{$max}");
103+
$rules[$key][] = "between:{$min},{$max}";
104104
}
105105

106106
return $rules;

0 commit comments

Comments
 (0)