Merge pull request #25003 from nextcloud/psalm/noid/phpdoc-fix-return-type

Fix return types for Archive::getStream
This commit is contained in:
Roeland Jago Douma
2021-01-07 13:31:24 +01:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
+1 -1
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
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
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') {