We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d9aa291 + a2fa010 commit fc63ec6Copy full SHA for fc63ec6
src/Http/Validator/ArrayList.php
@@ -105,16 +105,16 @@ public function isValid(mixed $value): bool
105
return false;
106
}
107
108
- if ($this->length && \count($value) > $this->length) {
109
- return false;
110
- }
111
-
112
foreach ($value as $element) {
113
if (!$this->validator->isValid($element)) {
114
115
116
117
+ if ($this->length && \count($value) > $this->length) {
+ return false;
+ }
+
118
return true;
119
120
0 commit comments