Skip to content

Commit 0b3f01f

Browse files
committed
Remove unused local variables in tests
1 parent 9eb33cf commit 0b3f01f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Constraints/FileValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function validate($value, Constraint $constraint)
6060
$binaryFormat = null === $constraint->binaryFormat ? true : $constraint->binaryFormat;
6161
}
6262

63-
list($sizeAsString, $limitAsString, $suffix) = $this->factorizeSizes(0, $limitInBytes, $binaryFormat);
63+
list(, $limitAsString, $suffix) = $this->factorizeSizes(0, $limitInBytes, $binaryFormat);
6464
$this->context->buildViolation($constraint->uploadIniSizeErrorMessage)
6565
->setParameter('{{ limit }}', $limitAsString)
6666
->setParameter('{{ suffix }}', $suffix)

Tests/Constraints/FileValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ public function uploadedFileErrorProvider()
450450
$reflection = new \ReflectionClass(\get_class(new FileValidator()));
451451
$method = $reflection->getMethod('factorizeSizes');
452452
$method->setAccessible(true);
453-
list($sizeAsString, $limit, $suffix) = $method->invokeArgs(new FileValidator(), [0, UploadedFile::getMaxFilesize(), false]);
453+
list(, $limit, $suffix) = $method->invokeArgs(new FileValidator(), [0, UploadedFile::getMaxFilesize(), false]);
454454

455455
// it correctly parses the maxSize option and not only uses simple string comparison
456456
// 1000M should be bigger than the ini value

0 commit comments

Comments
 (0)