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 a318801

Browse filesBrowse 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
Copy full SHA for a318801

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
  • src/Symfony/Component/Validator/Constraints
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

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

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