summaryrefslogtreecommitdiff
path: root/src/Diactoros/UploadedFileFactory.php
diff options
context:
space:
mode:
authorParamtamtam <[email protected]>2019-12-25 23:00:22 +0500
committerParamtamtam <[email protected]>2019-12-25 23:00:22 +0500
commit4016bdf2d53faca43408dd28b0809a45d508d338 (patch)
tree2eda37a4a0c4b5b65ad9a0df067f466be9778707 /src/Diactoros/UploadedFileFactory.php
parent2e0f9fac31764ff137ff0e1a03bfc332f94e1e0f (diff)
PHP sources updated (phpstan level MAX)
Diffstat (limited to 'src/Diactoros/UploadedFileFactory.php')
-rw-r--r--src/Diactoros/UploadedFileFactory.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Diactoros/UploadedFileFactory.php b/src/Diactoros/UploadedFileFactory.php
index 4f09fb23..45773287 100644
--- a/src/Diactoros/UploadedFileFactory.php
+++ b/src/Diactoros/UploadedFileFactory.php
@@ -27,9 +27,10 @@ final class UploadedFileFactory implements UploadedFileFactoryInterface
string $clientMediaType = null
): UploadedFileInterface {
if ($size === null) {
- $size = $stream->getSize();
+ $size = (int) $stream->getSize();
}
+ /** @var resource $stream */
return new UploadedFile($stream, $size, $error, $clientFilename, $clientMediaType);
}
}