[Validator]

by @gpetraroli

Some issues have been detected in this pull request

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

curl https://fabbot.io/patch/symfony/symfony/51688/804aa4778ddbe4fa30825537a961762257a36ac7/cs.diff | patch -p0
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 <[email protected]>
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();
     }

0
Common Typos

0
License Headers

0
Pull Request Contributor Headers

0
File Permissions

0
Merge Commits

0
Exception Messages Formatting

0
Usage of void in test files

0
Use ::class whenever possible

0
Deprecation Messages