Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a318801

Browse files
bug #53620 [Validator] Fix option filenameMaxLength to the File constraint (Image) (mindaugasvcs)
This PR was merged into the 6.4 branch. Discussion ---------- [Validator] Fix option filenameMaxLength to the File constraint (Image) | Q | A | ------------- | --- | Branch? | 6.4<!-- see below --> | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | ... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT Recent addition of [filenameMaxLength] option to File constraint added a new error message key to ERROR_NAMES array but that change was not reflected in child class Image, so it just adds missing self::FILENAME_TOO_LONG => 'FILENAME_TOO_LONG' item to ERROR_NAMES array in Image constraint. Commits ------- 6d15121 Fix option filenameMaxLength to the File constraint (Image)
2 parents c3879f6 + 6d15121 commit a318801

File tree

1 file changed

+1
-0
lines changed
  • src/Symfony/Component/Validator/Constraints

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class Image extends File
4343
self::EMPTY_ERROR => 'EMPTY_ERROR',
4444
self::TOO_LARGE_ERROR => 'TOO_LARGE_ERROR',
4545
self::INVALID_MIME_TYPE_ERROR => 'INVALID_MIME_TYPE_ERROR',
46+
self::FILENAME_TOO_LONG => 'FILENAME_TOO_LONG',
4647
self::SIZE_NOT_DETECTED_ERROR => 'SIZE_NOT_DETECTED_ERROR',
4748
self::TOO_WIDE_ERROR => 'TOO_WIDE_ERROR',
4849
self::TOO_NARROW_ERROR => 'TOO_NARROW_ERROR',

0 commit comments

Comments
 (0)