Browse Source
Fix return types for Archive::getStream
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
tags/v21.0.0beta5
Morris Jobke
3 years ago
No account linked to committer's email address
|
|
@@ -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); |
|
|
|
/** |
|
|
@@ -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) { |
|
|
@@ -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') { |