Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>tags/v26.0.0beta3
@@ -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; | |||