src/mako/validator/Validator.php
public function isInvalid(?array &$errors = null): bool
	{
		[$isValid, $errors] = $this->process();

		return $isValid === false;
	}
public function isInvalid(?array &$errors = null): bool
	{
		[$isValid, $errors] = $this->process();

		return $isValid === false;
	}
public function isInvalid ( ? array & $ errors = null ) : bool { [ $ isValid , $ errors ] = $ this -> process ( ) ; return $ isValid === false ; }
Returns false if all rules passed and true if validation failed.

@param  array|null &$errors If $errors is provided, then it is filled with all the error messages
@return bool
Returns false if all rules passed and true if validation failed .