IValidator.validate can now throw InvalidValueException

master 3.13.1
Julien Rosset 1 month ago
parent 761067e48a
commit c949d6dc3f

@ -23,6 +23,8 @@ interface IValidator {
* @param mixed $value The value to validate * @param mixed $value The value to validate
* *
* @return bool True if the value is valid, else False * @return bool True if the value is valid, else False
*
* @throws InvalidValueException If the value is not valid (custom error message)
*/ */
public function validate (mixed $value): bool; public function validate (mixed $value): bool;
/** /**

Loading…
Cancel
Save