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
parent
commit
a39bd18654
No account linked to committer's email address
3 changed files with 3 additions and 3 deletions
  1. 1
    1
      lib/private/Archive/Archive.php
  2. 1
    1
      lib/private/Archive/TAR.php
  3. 1
    1
      lib/private/Archive/ZIP.php

+ 1
- 1
lib/private/Archive/Archive.php 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);
/**

+ 1
- 1
lib/private/Archive/TAR.php 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) {

+ 1
- 1
lib/private/Archive/ZIP.php 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') {

Loading…
Cancel
Save