diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-23 15:43:39 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-02-07 11:23:31 +0100 |
commit | 110fc79918c5c843dbd51373cb4f78f5f19697c3 (patch) | |
tree | 552fe440adc037bf62c25bcd242315eecf7cf34f /apps/files_trashbin | |
parent | 77c8c9c80549e6e3a906fb84324488148e56c874 (diff) | |
download | nextcloud-server-110fc79918c5c843dbd51373cb4f78f5f19697c3.tar.gz nextcloud-server-110fc79918c5c843dbd51373cb4f78f5f19697c3.zip |
Silence errors of return type mismatch from Sabre for now
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r-- | apps/files_trashbin/lib/Sabre/AbstractTrash.php | 4 | ||||
-rw-r--r-- | apps/files_trashbin/lib/Sabre/ITrash.php | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/Sabre/AbstractTrash.php b/apps/files_trashbin/lib/Sabre/AbstractTrash.php index c30e15c18cb..e02e4c5b8ba 100644 --- a/apps/files_trashbin/lib/Sabre/AbstractTrash.php +++ b/apps/files_trashbin/lib/Sabre/AbstractTrash.php @@ -57,6 +57,10 @@ abstract class AbstractTrash implements ITrash { return $this->data; } + /** + * @psalm-suppress ImplementedReturnTypeMismatch \Sabre\DAV\IFile::getSize signature does not support 32bit + * @return int|float + */ public function getSize(): int|float { return $this->data->getSize(); } diff --git a/apps/files_trashbin/lib/Sabre/ITrash.php b/apps/files_trashbin/lib/Sabre/ITrash.php index dcda1abe259..b6b4e70f3b9 100644 --- a/apps/files_trashbin/lib/Sabre/ITrash.php +++ b/apps/files_trashbin/lib/Sabre/ITrash.php @@ -39,7 +39,7 @@ interface ITrash { public function getDeletionTime(): int; - public function getSize(); + public function getSize(): int|float; public function getFileId(): int; |