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
commit f552f23e43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

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);
/**

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

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