aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/LargeFileHelper.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/LargeFileHelper.php')
-rwxr-xr-xlib/private/LargeFileHelper.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/LargeFileHelper.php b/lib/private/LargeFileHelper.php
index 09bb959cdcf..c8d6ba42eb5 100755
--- a/lib/private/LargeFileHelper.php
+++ b/lib/private/LargeFileHelper.php
@@ -95,10 +95,9 @@ class LargeFileHelper {
*
* @param string $filename Path to the file.
*
- * @return int|float Number of bytes as number (float or int) or
- * null on failure.
+ * @return int|float Number of bytes as number (float or int)
*/
- public function getFileSize(string $filename): null|int|float {
+ public function getFileSize(string $filename): int|float {
$fileSize = $this->getFileSizeViaCurl($filename);
if (!is_null($fileSize)) {
return $fileSize;