Skip to content

Commit 4d52493

Browse files
author
Hugo Hamon
committed
[Validator] removes unused variable in LengthValidator class.
1 parent e18a42a commit 4d52493

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)