From 110fc79918c5c843dbd51373cb4f78f5f19697c3 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Mon, 23 Jan 2023 15:43:39 +0100 Subject: Silence errors of return type mismatch from Sabre for now MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/files_trashbin/lib/Sabre/AbstractTrash.php | 4 ++++ apps/files_trashbin/lib/Sabre/ITrash.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/files_trashbin/lib') 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; -- cgit v1.2.3