respect-validation/library/Rules
Dylan T 3501192293
Report all errors when asserting with "Each" rule
The intention of the "assert()" method is to show all the errors that a
given input may have. The implementation of the "assert()" method in the
"Each" rule, on the other hand, only reports the first error of each
element of the input.

This commit makes "Each" show all the validation failures of each
element of the input. Also, the implementation of
"AbstractRule::check()" is simply a proxy for the "assert()" method,
and since the "Each" rule extends that class, this commit creates a
custom implementation of the "check()" method.

Co-authored-by: Henrique Moody <henriquemoody@gmail.com>
2020-05-18 21:18:13 +02:00
..
AbstractAge.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
AbstractComparison.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
AbstractComposite.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
AbstractEnvelope.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
AbstractFilterRule.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
AbstractRelated.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
AbstractRule.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
AbstractSearcher.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
AbstractWrapper.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
AllOf.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Alnum.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Alpha.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
AlwaysInvalid.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
AlwaysValid.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
AnyOf.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
ArrayType.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
ArrayVal.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Attribute.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Base.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Base64.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Between.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
BoolType.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
BoolVal.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Bsn.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Call.php Restore previous error handler when validation fails 2020-05-18 15:26:06 +02:00
CallableType.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Callback.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Charset.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Cnh.php Add support for PHP 7.4 version 2020-04-04 22:29:03 +02:00
Cnpj.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Consonant.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Contains.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
ContainsAny.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Control.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Countable.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
CountryCode.php Merge branch '1.1' 2019-05-29 23:17:53 +02:00
Cpf.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
CreditCard.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
CurrencyCode.php Merge branch '1.1' 2019-05-29 23:17:53 +02:00
Date.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
DateTime.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Digit.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Directory.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Domain.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Each.php Report all errors when asserting with "Each" rule 2020-05-18 21:18:13 +02:00
Email.php Fix Email validator when egulias/email-validator was not installed 2020-04-08 18:00:19 +03:00
EndsWith.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Equals.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Equivalent.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Even.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Executable.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Exists.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Extension.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Factor.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
FalseVal.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Fibonacci.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
File.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
FilterVar.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Finite.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
FloatType.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
FloatVal.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Graph.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
GreaterThan.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
HexRgbColor.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Iban.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Identical.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Image.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Imei.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
In.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Infinite.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Instance.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
IntType.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
IntVal.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Ip.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Isbn.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
IterableType.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Json.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Key.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
KeyNested.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
KeySet.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
KeyValue.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
LanguageCode.php Merge branch '1.1' 2019-05-29 23:17:53 +02:00
LeapDate.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
LeapYear.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Length.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
LessThan.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Lowercase.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Luhn.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
MacAddress.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Max.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
MaxAge.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Mimetype.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Min.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
MinAge.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Multiple.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Negative.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
NfeAccessKey.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Nif.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Nip.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
No.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
NoneOf.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Not.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
NotBlank.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
NotEmoji.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
NotEmpty.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
NotOptional.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
NoWhitespace.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Nullable.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
NullType.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Number.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
NumericVal.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
ObjectType.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Odd.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
OneOf.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Optional.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
PerfectSquare.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Pesel.php Add support for PHP 7.4 version 2020-04-04 22:29:03 +02:00
Phone.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
PhpLabel.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Pis.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
PolishIdCard.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Positive.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
PostalCode.php Fix ecuador postal code format to 6 digits 2020-05-13 18:41:55 +02:00
PrimeNumber.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Printable.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Punct.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Readable.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Regex.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
ResourceType.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Roman.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
ScalarVal.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Sf.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Size.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Slug.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Sorted.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Space.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
StartsWith.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
StringType.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
StringVal.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
SubdivisionCode.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Subset.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
SymbolicLink.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Time.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Tld.php Merge branch '1.1' 2019-05-29 23:17:53 +02:00
TrueVal.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Type.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Unique.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Uploaded.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Uppercase.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Url.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Uuid.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Version.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
VideoUrl.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Vowel.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
When.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Writable.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Xdigit.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Yes.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Zend.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00