Fixed undefined ImageValidator:: property when uploading an image during functional tests

This commit is contained in:
Tristan Maindron 2014-06-12 17:59:49 +02:00 committed by Fabien Potencier
parent e74d37b864
commit 859f34e1c4

View File

@ -160,7 +160,7 @@ class FileValidator extends ConstraintValidator
$this->context->addViolation($constraint->maxSizeMessage, array(
'{{ size }}' => $sizeAsString,
'{{ limit }}' => $limitAsString,
'{{ suffix }}' => static::$suffices[$coef],
'{{ suffix }}' => self::$suffices[$coef],
'{{ file }}' => $path,
));