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:
commit
7ed176f91c
@ -39,7 +39,6 @@ class LengthValidator extends ConstraintValidator
|
|||||||
}
|
}
|
||||||
|
|
||||||
$stringValue = (string) $value;
|
$stringValue = (string) $value;
|
||||||
$invalidCharset = false;
|
|
||||||
|
|
||||||
if ('UTF8' === $charset = strtoupper($constraint->charset)) {
|
if ('UTF8' === $charset = strtoupper($constraint->charset)) {
|
||||||
$charset = 'UTF-8'; // iconv on Windows requires "UTF-8" instead of "UTF8"
|
$charset = 'UTF-8'; // iconv on Windows requires "UTF-8" instead of "UTF8"
|
||||||
|
Reference in New Issue
Block a user