From a39bd18654d53c3ddc09188db12f4d68cd2a333b Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 7 Jan 2021 12:38:41 +0100 Subject: Fix return types for Archive::getStream Signed-off-by: Morris Jobke --- lib/private/Archive/Archive.php | 2 +- lib/private/Archive/TAR.php | 2 +- lib/private/Archive/ZIP.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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') { -- cgit v1.2.3