ZIP Imports: Removed redundant fallback values, as per phpstan

This commit is contained in:
Dan Brown
2026-09-29 15:03:08 +01:00
parent aa6f42e929
commit d9989d7b50
+2 -2
View File
@@ -64,7 +64,7 @@ class ZipExportReader
}
$maxSize = max(intval(config()->get('app.upload_limit')), 1) * 1000000;
$dataSize = $info['size'] ?? 0;
$dataSize = $info['size'];
if ($dataSize > $maxSize) {
throw new ZipExportException(trans('errors.import_zip_data_too_large'));
}
@@ -96,7 +96,7 @@ class ZipExportReader
return -1;
}
return $fileInfo['size'] ?? -1;
return $fileInfo['size'];
}
/**