From da8f50cfb5f289f977e4938b59c4a94776047780 Mon Sep 17 00:00:00 2001 From: Maxime Veber Date: Fri, 27 Sep 2019 13:20:32 +0200 Subject: [PATCH] Allow to use validator inside another annotation This change will allow us to use the validator inside the @All of Symfony. --- CHANGELOG.md | 4 ++++ src/Knp/DictionaryBundle/Validator/Constraints/Dictionary.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4a57b42..e7650c6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [2.1.5] - 2019-09-27 +### Changed +- Allow to use the validator inside another annotation + ## [2.1.4] - 2019-03-29 ### Changed - Fix deprecation trigger of Sf 4.2 diff --git a/src/Knp/DictionaryBundle/Validator/Constraints/Dictionary.php b/src/Knp/DictionaryBundle/Validator/Constraints/Dictionary.php index 0b2d5a06..5c48e696 100644 --- a/src/Knp/DictionaryBundle/Validator/Constraints/Dictionary.php +++ b/src/Knp/DictionaryBundle/Validator/Constraints/Dictionary.php @@ -6,7 +6,7 @@ /** * @Annotation - * @Target({"PROPERTY", "METHOD"}) + * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) */ class Dictionary extends Constraint {