Browse Source

Silence errors of return type mismatch from Sabre for now

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
tags/v26.0.0beta3
Côme Chilliet 1 year ago
parent
commit
110fc79918
No account linked to committer's email address

+ 1
- 0
apps/dav/lib/Connector/Sabre/Node.php View File

@@ -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 {

+ 4
- 0
apps/dav/lib/Direct/DirectFile.php View File

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


+ 1
- 0
apps/dav/lib/Upload/UploadFile.php View File

@@ -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() {

+ 4
- 0
apps/files_trashbin/lib/Sabre/AbstractTrash.php View File

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

+ 1
- 1
apps/files_trashbin/lib/Sabre/ITrash.php View File

@@ -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