Skip to content

Commit 333ef70

Browse files
Update UltimateValidator.php
1 parent bc8152b commit 333ef70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/UltimateValidator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ public function submit(array $data, ?bool $allowedType = false, callable $before
136136
$this->error = false;
137137
}
138138
else{
139-
$this->error = true;
139+
if(count($this->message) === 0){
140+
$this->error = true;
141+
}
140142
}
141143
}
142144
}

0 commit comments

Comments
 (0)