diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-01-07 13:31:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-07 13:31:24 +0100 |
commit | f552f23e437371b1a34c7df0fc7a11004f4cc1c2 (patch) | |
tree | a2528c910abc1183962ae92f3a2ef973eb789b35 /lib | |
parent | 2495e1825ac383b193ba9cc09f8201df0ad39b6e (diff) | |
parent | a39bd18654d53c3ddc09188db12f4d68cd2a333b (diff) | |
download | nextcloud-server-f552f23e437371b1a34c7df0fc7a11004f4cc1c2.tar.gz nextcloud-server-f552f23e437371b1a34c7df0fc7a11004f4cc1c2.zip |
Merge pull request #25003 from nextcloud/psalm/noid/phpdoc-fix-return-type
Fix return types for Archive::getStream
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Archive/Archive.php | 2 | ||||
-rw-r--r-- | lib/private/Archive/TAR.php | 2 | ||||
-rw-r--r-- | lib/private/Archive/ZIP.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Archive/Archive.php b/lib/private/Archive/Archive.php index 633e5e8ab0e..20d56e50e76 100644 --- a/lib/private/Archive/Archive.php +++ b/lib/private/Archive/Archive.php @@ -113,7 +113,7 @@ abstract class Archive { * get a file handler * @param string $path * @param string $mode - * @return resource + * @return bool|resource */ abstract public function getStream($path, $mode); /** diff --git a/lib/private/Archive/TAR.php b/lib/private/Archive/TAR.php index a9dd28b389b..f68813752cc 100644 --- a/lib/private/Archive/TAR.php +++ b/lib/private/Archive/TAR.php @@ -339,7 +339,7 @@ class TAR extends Archive { * * @param string $path * @param string $mode - * @return resource + * @return bool|resource */ public function getStream($path, $mode) { if (strrpos($path, '.') !== false) { diff --git a/lib/private/Archive/ZIP.php b/lib/private/Archive/ZIP.php index fd34f4d4cea..96894bac6e9 100644 --- a/lib/private/Archive/ZIP.php +++ b/lib/private/Archive/ZIP.php @@ -187,7 +187,7 @@ class ZIP extends Archive { * get a file handler * @param string $path * @param string $mode - * @return resource + * @return bool|resource */ public function getStream($path, $mode) { if ($mode == 'r' or $mode == 'rb') { |