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

Fix return types for Archive::getStream
pull/25010/head
Roeland Jago Douma 2021-01-07 13:31:24 +07:00 committed by GitHub
commit f552f23e43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

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