8000 bug #11111 Fixed undefined ImageValidator::$suffices property when up… · symfony/symfony@267eaa3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 267eaa3

Browse files
committed
bug #11111 Fixed undefined ImageValidator::$suffices property when uploading an image during functional tests (OwlyCode)
This PR was squashed before being merged into the 2.5 branch (closes #11111). Discussion ---------- Fixed undefined ImageValidator::$suffices property when uploading an image during functional tests | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #11110 | License | MIT | Doc PR | This will make the FileValidator::$suffices attribute protected so ImageValidator or any inherited class can access it. It fixes #11110 in the most simple way possible. Commits ------- 859f34e Fixed undefined ImageValidator:: property when uploading an image during functional tests
2 parents e74d37b + 859f34e commit 267eaa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function validate($value, Constraint $constraint)
160160
$this->context->addViolation($constraint->maxSizeMessage, array(
161161
'{{ size }}' => $sizeAsString,
162162
'{{ limit }}' => $limitAsString,
163-
'{{ suffix }}' => static::$suffices[$coef],
163+
'{{ suffix }}' => self::$suffices[$coef],
164164
'{{ file }}' => $path,
165165
));
166166

0 commit comments

Comments
 (0)
0