@@ -63,7 +63,7 @@ public function validate($value, Constraint $constraint)
63
63
$ binaryFormat = null === $ constraint ->binaryFormat ? true : $ constraint ->binaryFormat ;
64
64
}
65
65
66
- list ( , $ limitAsString , $ suffix) = $ this ->factorizeSizes (0 , $ limitInBytes , $ binaryFormat );
66
+ [ , $ limitAsString , $ suffix] = $ this ->factorizeSizes (0 , $ limitInBytes , $ binaryFormat );
67
67
$ this ->context ->buildViolation ($ constraint ->uploadIniSizeErrorMessage )
68
68
->setParameter ('{{ limit }} ' , $ limitAsString )
69
69
->setParameter ('{{ suffix }} ' , $ suffix )
@@ -157,7 +157,7 @@ public function validate($value, Constraint $constraint)
157
157
$ limitInBytes = $ constraint ->maxSize ;
158
158
159
159
if ($ sizeInBytes > $ limitInBytes ) {
160
- list ( $ sizeAsString , $ limitAsString , $ suffix) = $ this ->factorizeSizes ($ sizeInBytes , $ limitInBytes , $ constraint ->binaryFormat );
160
+ [ $ sizeAsString , $ limitAsString , $ suffix] = $ this ->factorizeSizes ($ sizeInBytes , $ limitInBytes , $ constraint ->binaryFormat );
161
161
$ this ->context ->buildViolation ($ constraint ->maxSizeMessage )
162
162
->setParameter ('{{ file }} ' , $ this ->formatValue ($ path ))
163
163
->setParameter ('{{ size }} ' , $ sizeAsString )
0 commit comments