Throw better Exceptions
This commit is contained in:
@@ -683,7 +683,7 @@ class Validator {
|
||||
return call_user_func_array(static::$validators[$method], $parameters);
|
||||
}
|
||||
|
||||
throw new \Exception("Call to undefined method [$method] on Validator instance.");
|
||||
throw new \BadMethodCallException("Call to undefined method [$method] on Validator instance.");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user