Skip to content

Commit 7ed176f

Browse files
committed
minor symfony#16935 [Validator] removes unused variable in LengthValidator class. (hhamon)
This PR was merged into the 2.8 branch. Discussion ---------- [Validator] removes unused variable in LengthValidator class. | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | ~ | License | MIT | Doc PR | ~ Commits ------- 4d52493 [Validator] removes unused variable in LengthValidator class.
2 parents e18a42a + 4d52493 commit 7ed176f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Symfony/Component/Validator/Constraints/LengthValidator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public function validate($value, Constraint $constraint)
3939
}
4040

4141
$stringValue = (string) $value;
42-
$invalidCharset = false;
4342

4443
if ('UTF8' === $charset = strtoupper($constraint->charset)) {
4544
$charset = 'UTF-8'; // iconv on Windows requires "UTF-8" instead of "UTF8"

0 commit comments

Comments
 (0)