Merge branch '4.2' into 4.3
* 4.2: Fix link to documentation [Validator] Use LogicException for missing Property Access Component in comparison constraints
This commit is contained in:
commit
3634390a27
@ -14,6 +14,7 @@ namespace Symfony\Component\Validator\Constraints;
|
||||
use Symfony\Component\PropertyAccess\PropertyAccess;
|
||||
use Symfony\Component\Validator\Constraint;
|
||||
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
|
||||
use Symfony\Component\Validator\Exception\LogicException;
|
||||
|
||||
/**
|
||||
* Used for the comparison of values.
|
||||
@ -46,7 +47,7 @@ abstract class AbstractComparison extends Constraint
|
||||
}
|
||||
|
||||
if (isset($options['propertyPath']) && !class_exists(PropertyAccess::class)) {
|
||||
throw new ConstraintDefinitionException(sprintf('The "%s" constraint requires the Symfony PropertyAccess component to use the "propertyPath" option.', \get_class($this)));
|
||||
throw new LogicException(sprintf('The "%s" constraint requires the Symfony PropertyAccess component to use the "propertyPath" option.', \get_class($this)));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,7 @@ It also provides a few improvements over `var_export()`/`serialize()`:
|
||||
Resources
|
||||
---------
|
||||
|
||||
* [Documentation](https://symfony.com/doc/current/components/var_exporter/introduction.html)
|
||||
* [Documentation](https://symfony.com/doc/current/components/var_exporter.html)
|
||||
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
|
||||
* [Report issues](https://github.com/symfony/symfony/issues) and
|
||||
[send Pull Requests](https://github.com/symfony/symfony/pulls)
|
||||
|
Reference in New Issue
Block a user