Silence errors of return type mismatch from Sabre for now

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/36120/head
Côme Chilliet 3 years ago
parent 77c8c9c805
commit 110fc79918
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
  1. 1
      apps/dav/lib/Connector/Sabre/Node.php
  2. 4
      apps/dav/lib/Direct/DirectFile.php
  3. 1
      apps/dav/lib/Upload/UploadFile.php
  4. 4
      apps/files_trashbin/lib/Sabre/AbstractTrash.php
  5. 2
      apps/files_trashbin/lib/Sabre/ITrash.php

@ -223,6 +223,7 @@ abstract class Node implements \Sabre\DAV\INode {
/**
* Returns the size of the node, in bytes
*
* @psalm-suppress ImplementedReturnTypeMismatch \Sabre\DAV\IFile::getSize signature does not support 32bit
* @return int|float
*/
public function getSize(): int|float {

@ -77,6 +77,10 @@ class DirectFile implements IFile {
return $this->file->getEtag();
}
/**
* @psalm-suppress ImplementedReturnTypeMismatch \Sabre\DAV\IFile::getSize signature does not support 32bit
* @return int|float
*/
public function getSize() {
$this->getFile();

@ -53,6 +53,7 @@ class UploadFile implements IFile {
}
/**
* @psalm-suppress ImplementedReturnTypeMismatch \Sabre\DAV\IFile::getSize signature does not support 32bit
* @return int|float
*/
public function getSize() {

@ -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();
}

@ -39,7 +39,7 @@ interface ITrash {
public function getDeletionTime(): int;
public function getSize();
public function getSize(): int|float;
public function getFileId(): int;

Loading…
Cancel
Save