Fix return types for Archive::getStream
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
2dd04f76d2
commit
a39bd18654
|
@ -113,7 +113,7 @@ abstract class Archive {
|
||||||
* get a file handler
|
* get a file handler
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param string $mode
|
* @param string $mode
|
||||||
* @return resource
|
* @return bool|resource
|
||||||
*/
|
*/
|
||||||
abstract public function getStream($path, $mode);
|
abstract public function getStream($path, $mode);
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -339,7 +339,7 @@ class TAR extends Archive {
|
||||||
*
|
*
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param string $mode
|
* @param string $mode
|
||||||
* @return resource
|
* @return bool|resource
|
||||||
*/
|
*/
|
||||||
public function getStream($path, $mode) {
|
public function getStream($path, $mode) {
|
||||||
if (strrpos($path, '.') !== false) {
|
if (strrpos($path, '.') !== false) {
|
||||||
|
|
|
@ -187,7 +187,7 @@ class ZIP extends Archive {
|
||||||
* get a file handler
|
* get a file handler
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param string $mode
|
* @param string $mode
|
||||||
* @return resource
|
* @return bool|resource
|
||||||
*/
|
*/
|
||||||
public function getStream($path, $mode) {
|
public function getStream($path, $mode) {
|
||||||
if ($mode == 'r' or $mode == 'rb') {
|
if ($mode == 'r' or $mode == 'rb') {
|
||||||
|
|
Loading…
Reference in New Issue