eee
This commit is contained in:
@@ -91,6 +91,9 @@ class Validator
|
||||
*/
|
||||
public function addRule(string $name, array $rule): void
|
||||
{
|
||||
if (count($rule) < 1) {
|
||||
return;
|
||||
}
|
||||
if (!isset($this->rules[$name])) {
|
||||
$this->rules[$name] = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user