Skip to content

Commit

Permalink
Only cast size to an integer.
Browse files Browse the repository at this point in the history
Signed-off-by: halfpastfouram <[email protected]>
  • Loading branch information
halfpastfouram committed Jul 3, 2020
1 parent a8232d8 commit 95e2199
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions/create_uploaded_file.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ function createUploadedFile(array $spec) : UploadedFile

return new UploadedFile(
$spec['tmp_name'],
intval($spec['size']),
intval($spec['error']),
(int) $spec['size'],
$spec['error'],
$spec['name'] ?? null,
$spec['type'] ?? null
);
Expand Down

0 comments on commit 95e2199

Please sign in to comment.