diff -ru src/Symfony/Component/Validator/Constraints/Language.php src/Symfony/Component/Validator/Constraints/Language.php --- src/Symfony/Component/Validator/Constraints/Language.php 2023-09-18 20:06:22.307226013 +0000 +++ src/Symfony/Component/Validator/Constraints/Language.php 2023-09-18 20:06:23.260281856 +0000 @@ -17,6 +17,7 @@ /** * @Annotation + * * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek diff -ru src/Symfony/Component/Validator/Tests/Constraints/LanguageValidatorTest.php src/Symfony/Component/Validator/Tests/Constraints/LanguageValidatorTest.php --- src/Symfony/Component/Validator/Tests/Constraints/LanguageValidatorTest.php 2023-09-18 20:06:22.773253319 +0000 +++ src/Symfony/Component/Validator/Tests/Constraints/LanguageValidatorTest.php 2023-09-18 20:06:23.960322874 +0000 @@ -224,7 +224,7 @@ $this->validator->validate($language, $constraint); $this->buildViolation('myMessage') - ->setParameter('{{ value }}', '"' . strtolower($language) . '"') + ->setParameter('{{ value }}', '"'.strtolower($language).'"') ->setCode(Language::NO_SUCH_LANGUAGE_ERROR) ->assertRaised(); }