Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7ed176f

Browse filesBrowse files
committed
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.
2 parents e18a42a + 4d52493 commit 7ed176f
Copy full SHA for 7ed176f

File tree

Expand file treeCollapse file tree

1 file changed

+0
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Constraints/LengthValidator.php
-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.