From 6ac23169931efdb79e9dae3a4427a25c20e6f6ff Mon Sep 17 00:00:00 2001 From: Lctrs Date: Wed, 19 Jun 2019 10:51:43 +0200 Subject: [PATCH 1/2] [Validator] Use LogicException for missing Property Access Component in comparison constraints --- .../Component/Validator/Constraints/AbstractComparison.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Validator/Constraints/AbstractComparison.php b/src/Symfony/Component/Validator/Constraints/AbstractComparison.php index 89c2690c08..435ced6eb8 100644 --- a/src/Symfony/Component/Validator/Constraints/AbstractComparison.php +++ b/src/Symfony/Component/Validator/Constraints/AbstractComparison.php @@ -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))); } } From e0d2c58bc2fe79bcc5bf6bd3f644463183fb24f3 Mon Sep 17 00:00:00 2001 From: Alex Nostadt Date: Thu, 20 Jun 2019 21:56:03 +0200 Subject: [PATCH 2/2] Fix link to documentation --- src/Symfony/Component/VarExporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/VarExporter/README.md b/src/Symfony/Component/VarExporter/README.md index 180554ed1a..bb13960e0d 100644 --- a/src/Symfony/Component/VarExporter/README.md +++ b/src/Symfony/Component/VarExporter/README.md @@ -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)