summaryrefslogtreecommitdiffstats
path: root/lib/private/Archive
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2021-01-07 12:38:41 +0100
committerMorris Jobke <hey@morrisjobke.de>2021-01-07 12:38:41 +0100
commita39bd18654d53c3ddc09188db12f4d68cd2a333b (patch)
tree48232be9c4ded0700fdeb7fd70a81374ba842dc0 /lib/private/Archive
parent2dd04f76d2b56fc71729d773e011515096b0b1d3 (diff)
downloadnextcloud-server-a39bd18654d53c3ddc09188db12f4d68cd2a333b.tar.gz
nextcloud-server-a39bd18654d53c3ddc09188db12f4d68cd2a333b.zip
Fix return types for Archive::getStream
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Archive')
-rw-r--r--lib/private/Archive/Archive.php2
-rw-r--r--lib/private/Archive/TAR.php2
-rw-r--r--lib/private/Archive/ZIP.php2
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') {