aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller/ShareController.php
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-10-17 12:40:35 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-10-17 12:40:35 +0200
commit54031e370ac05b127d4bc799de99ce1b643adcbb (patch)
tree36d71151c54c260fbefffdf6ed137862e922b74a /apps/files_sharing/lib/Controller/ShareController.php
parent0a2a4d86870f9738544c67cc494c3f48a8f4e924 (diff)
downloadnextcloud-server-54031e370ac05b127d4bc799de99ce1b643adcbb.tar.gz
nextcloud-server-54031e370ac05b127d4bc799de99ce1b643adcbb.zip
Fix various other small psalm issues
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/files_sharing/lib/Controller/ShareController.php')
-rw-r--r--apps/files_sharing/lib/Controller/ShareController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareController.php b/apps/files_sharing/lib/Controller/ShareController.php
index 4a9ace47146..6a6fd1c9f7f 100644
--- a/apps/files_sharing/lib/Controller/ShareController.php
+++ b/apps/files_sharing/lib/Controller/ShareController.php
@@ -429,7 +429,7 @@ class ShareController extends AuthPublicShareController {
*/
$freeSpace = $share->getNode()->getStorage()->free_space($share->getNode()->getInternalPath());
if ($freeSpace < \OCP\Files\FileInfo::SPACE_UNLIMITED) {
- $freeSpace = max($freeSpace, 0);
+ $freeSpace = (int)max($freeSpace, 0);
} else {
$freeSpace = (INF > 0) ? INF: PHP_INT_MAX; // work around https://bugs.php.net/bug.php?id=69188
}