minor #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.
This commit is contained in:
Tobias Schultze 2015-12-10 11:37:25 +01:00
commit 7ed176f91c
1 changed files with 0 additions and 1 deletions

View File

@ -39,7 +39,6 @@ class LengthValidator extends ConstraintValidator
}
$stringValue = (string) $value;
$invalidCharset = false;
if ('UTF8' === $charset = strtoupper($constraint->charset)) {
$charset = 'UTF-8'; // iconv on Windows requires "UTF-8" instead of "UTF8"