This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Validator/Constraints
Fabien Potencier 5471867efc bug #32094 [Validator] Use LogicException for missing Property Access Component in comparison constraints (Lctrs)
This PR was merged into the 4.2 branch.

Discussion
----------

[Validator] Use LogicException for missing Property Access Component in comparison constraints

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Bug fix?      | yes-ish
| New feature?  | no
| BC breaks?    | yes-ish
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

For consistency.

Commits
-------

6ac2316993 [Validator] Use LogicException for missing Property Access Component in comparison constraints
2019-06-22 10:13:40 +02:00
..
AbstractComparison.php [Validator] Use LogicException for missing Property Access Component in comparison constraints 2019-06-19 10:51:43 +02:00
AbstractComparisonValidator.php use PropertyAccessorInterface instead of PropertyAccessor 2019-02-12 08:15:17 +01:00
All.php switched array() to [] 2019-01-16 10:39:14 +01:00
AllValidator.php catch any UnexpectedValueException on validation 2018-10-24 09:52:19 +02:00
Bic.php Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
BicValidator.php Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
Blank.php switched array() to [] 2019-01-16 10:39:14 +01:00
BlankValidator.php Alpha-ordering for "use" statements 2018-07-26 11:03:18 +02:00
Callback.php switched array() to [] 2019-01-16 10:39:14 +01:00
CallbackValidator.php Optimize perf by replacing call_user_func with dynamic vars 2018-12-09 23:58:21 +01:00
CardScheme.php switched array() to [] 2019-01-16 10:39:14 +01:00
CardSchemeValidator.php switched array() to [] 2019-01-16 10:39:14 +01:00
Choice.php Merge branch '3.4' into 4.1 2019-01-16 19:21:11 +01:00
ChoiceValidator.php Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
Collection.php [Validator] Only traverse arrays that are cascaded into 2019-04-07 10:20:12 +02:00
CollectionValidator.php Merge branch '3.4' into 4.2 2019-02-23 16:17:42 +01:00
Composite.php switched array() to [] 2019-01-16 10:39:14 +01:00
Count.php [Validator] Fix annotation default for @Count and @Length 2019-03-29 16:49:31 +01:00
Country.php Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
CountryValidator.php catch any UnexpectedValueException on validation 2018-10-24 09:52:19 +02:00
CountValidator.php [Validator] Added missing use statement for UnexpectedTypeException 2019-02-16 22:59:42 +01:00
Currency.php Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
CurrencyValidator.php catch any UnexpectedValueException on validation 2018-10-24 09:52:19 +02:00
Date.php switched array() to [] 2019-01-16 10:39:14 +01:00
DateTime.php Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
DateTimeValidator.php catch any UnexpectedValueException on validation 2018-10-24 09:52:19 +02:00
DateValidator.php catch any UnexpectedValueException on validation 2018-10-24 09:52:19 +02:00
DivisibleBy.php fixed CS 2019-01-16 21:35:37 +01:00
DivisibleByValidator.php [Validator] Fix precision issue regarding floats and DivisibleBy constraint 2018-08-20 16:30:22 +02:00
Email.php Merge branch '3.4' into 4.2 2019-02-23 16:17:42 +01:00
EmailValidator.php Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
EqualTo.php switched array() to [] 2019-01-16 10:39:14 +01:00
EqualToValidator.php [Validator] Added missing error codes and turned codes into UUIDs 2015-06-30 16:06:42 +02:00
Existence.php switched array() to [] 2019-01-16 10:39:14 +01:00
Expression.php Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
ExpressionValidator.php switched array() to [] 2019-01-16 10:39:14 +01:00
File.php Merge branch '3.4' into 4.1 2019-01-16 19:21:11 +01:00
FileValidator.php Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
GreaterThan.php switched array() to [] 2019-01-16 10:39:14 +01:00
GreaterThanOrEqual.php switched array() to [] 2019-01-16 10:39:14 +01:00
GreaterThanOrEqualValidator.php [Validator] Added missing error codes and turned codes into UUIDs 2015-06-30 16:06:42 +02:00
GreaterThanValidator.php [Validator] Added missing error codes and turned codes into UUIDs 2015-06-30 16:06:42 +02:00
GroupSequence.php [Validator] Fix GroupSequenceProvider annotation 2019-06-20 08:43:29 +02:00
GroupSequenceProvider.php [Validator] Added missing error codes and turned codes into UUIDs 2015-06-30 16:06:42 +02:00
Iban.php switched array() to [] 2019-01-16 10:39:14 +01:00
IbanValidator.php Merge branch '3.4' into 4.2 2019-02-23 16:17:42 +01:00
IdenticalTo.php switched array() to [] 2019-01-16 10:39:14 +01:00
IdenticalToValidator.php [Validator] Added missing error codes and turned codes into UUIDs 2015-06-30 16:06:42 +02:00
Image.php switched array() to [] 2019-01-16 10:39:14 +01:00
ImageValidator.php Favor LogicException for missing classes & functions 2018-09-24 09:37:12 +02:00
Ip.php switched array() to [] 2019-01-16 10:39:14 +01:00
IpValidator.php catch any UnexpectedValueException on validation 2018-10-24 09:52:19 +02:00
Isbn.php switched array() to [] 2019-01-16 10:39:14 +01:00
IsbnValidator.php catch any UnexpectedValueException on validation 2018-10-24 09:52:19 +02:00
IsFalse.php switched array() to [] 2019-01-16 10:39:14 +01:00
IsFalseValidator.php Alpha-ordering for "use" statements 2018-07-26 11:03:18 +02:00
IsNull.php switched array() to [] 2019-01-16 10:39:14 +01:00
IsNullValidator.php Alpha-ordering for "use" statements 2018-07-26 11:03:18 +02:00
Issn.php switched array() to [] 2019-01-16 10:39:14 +01:00
IssnValidator.php Merge branch '3.4' into 4.2 2019-06-17 19:15:38 +02:00
IsTrue.php switched array() to [] 2019-01-16 10:39:14 +01:00
IsTrueValidator.php Alpha-ordering for "use" statements 2018-07-26 11:03:18 +02:00
Language.php Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
LanguageValidator.php catch any UnexpectedValueException on validation 2018-10-24 09:52:19 +02:00
Length.php [Validator] Fix annotation default for @Count and @Length 2019-03-29 16:49:31 +01:00
LengthValidator.php catch any UnexpectedValueException on validation 2018-10-24 09:52:19 +02:00
LessThan.php switched array() to [] 2019-01-16 10:39:14 +01:00
LessThanOrEqual.php [Validator] Fixed duplicate UUID 2019-02-20 20:51:21 +01:00
LessThanOrEqualValidator.php [Validator] Added missing error codes and turned codes into UUIDs 2015-06-30 16:06:42 +02:00
LessThanValidator.php [Validator] Added missing error codes and turned codes into UUIDs 2015-06-30 16:06:42 +02:00
Locale.php Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
LocaleValidator.php catch any UnexpectedValueException on validation 2018-10-24 09:52:19 +02:00
Luhn.php switched array() to [] 2019-01-16 10:39:14 +01:00
LuhnValidator.php Merge branch '3.4' into 4.2 2019-06-17 19:15:38 +02:00
NotBlank.php switched array() to [] 2019-01-16 10:39:14 +01:00
NotBlankValidator.php Alpha-ordering for "use" statements 2018-07-26 11:03:18 +02:00
NotEqualTo.php switched array() to [] 2019-01-16 10:39:14 +01:00
NotEqualToValidator.php [Validator] Added missing error codes and turned codes into UUIDs 2015-06-30 16:06:42 +02:00
NotIdenticalTo.php switched array() to [] 2019-01-16 10:39:14 +01:00
NotIdenticalToValidator.php [Validator] Added missing error codes and turned codes into UUIDs 2015-06-30 16:06:42 +02:00
NotNull.php switched array() to [] 2019-01-16 10:39:14 +01:00
NotNullValidator.php Remove calls to non-existing method 2016-01-14 01:18:51 +01:00
Optional.php [Validator] Remove property and method targets from the optional and required constraints. 2014-05-29 08:58:28 +01:00
Range.php switched array() to [] 2019-01-16 10:39:14 +01:00
RangeValidator.php Alpha-ordering for "use" statements 2018-07-26 11:03:18 +02:00
Regex.php be keen to newcomers 2019-02-22 15:44:53 +01:00
RegexValidator.php catch any UnexpectedValueException on validation 2018-10-24 09:52:19 +02:00
Required.php [Validator] Remove property and method targets from the optional and required constraints. 2014-05-29 08:58:28 +01:00
Time.php switched array() to [] 2019-01-16 10:39:14 +01:00
TimeValidator.php catch any UnexpectedValueException on validation 2018-10-24 09:52:19 +02:00
Traverse.php Apply php-cs-fixer rule for array_key_exists() 2019-02-23 16:06:07 +01:00
Type.php switched array() to [] 2019-01-16 10:39:14 +01:00
TypeValidator.php Alpha-ordering for "use" statements 2018-07-26 11:03:18 +02:00
Url.php Merge branch '3.4' into 4.2 2019-02-23 16:17:42 +01:00
UrlValidator.php Merge branch '4.1' into 4.2 2019-01-16 21:31:39 +01:00
Uuid.php switched array() to [] 2019-01-16 10:39:14 +01:00
UuidValidator.php Merge branch '4.1' 2018-11-15 13:42:54 +01:00
Valid.php Consistently throw exceptions on a single line 2018-09-08 14:44:02 +02:00
ValidValidator.php switched array() to [] 2019-01-16 10:39:14 +01:00