Fix return types for Archive::getStream

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2021-01-07 12:38:41 +01:00
parent 2dd04f76d2
commit a39bd18654
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
3 changed files with 3 additions and 3 deletions

View File

@ -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);
/**

View File

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

View File

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