respect-validation/library
Henrique Moody 779c0c1503
Do not accept whitespace by default in "Alnum" rule
The "Alnum" rule is supposed to validate alphanumeric values, but
instead, it also validates any whitespace character as valid.

The rule also accepts a list of characters on its constructor, so it the
users intentionally want some specific characters to also be allowed it
is better than they also defined these characters on the rule's
constructor.

While refactoring the rule I could notice that "AbstractCtypeRule" is
just an overhead that does not add much to it, so instead of extending
it "Alnum" now extends "AbstractFilterRule" directly (which is the
parent of "AbstractCtypeRule").

And since we want all rules to follow our contribution guidelines, this
commit also make sure the "Alnum" rule is in accordance with that.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-09-04 00:05:24 +02:00
..
Exceptions Do not accept whitespace by default in "Alnum" rule 2018-09-04 00:05:24 +02:00
Helpers Fix issues after merging 1.1 2018-08-01 20:46:34 +02:00
Rules Do not accept whitespace by default in "Alnum" rule 2018-09-04 00:05:24 +02:00
Factory.php Remove unnecessary validation from "Factory" class 2018-08-02 10:23:27 +02:00
Validatable.php Rename "Related" to "Child" 2018-08-02 11:18:33 +02:00
Validator.php Setup PHPStan (PHP Static Analysis Tool) 2018-08-22 19:10:20 +02:00