Skip to content

Commit 201aeb5

Browse files
authored
Allow UploadedFile to be of size zero (#48)
1 parent 1a21935 commit 201aeb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UploadedFileIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function testGetSize()
102102

103103
$file = $this->createSubject();
104104
$size = $file->getSize();
105-
if ($size) {
105+
if (false !== $size) {
106106
// @TODO remove when package require phpunit 9.1
107107
if (function_exists('PHPUnit\Framework\assertMatchesRegularExpression')) {
108108
$this->assertMatchesRegularExpression('|^[0-9]+$|', (string) $size);

0 commit comments

Comments
 (0)