Skip to content

Commit 51c5a92

Browse files
committed
fix: method signature
After the PR nextcloud/server#48219 the signatore of this method was changed and now is necessary to have return typing. Problem fixed: ``` Declaration of OCA\\GroupQuota\\Wrapper\\GroupQuotaWrapper::getCache($path = '', $storage = null) must be compatible with OC\\Files\\Storage\\Wrapper\\Wrapper::getCache($path = '', $storage = null): OCP\\Files\\Cache\\ICache at /var/www/html/apps-writable/groupquota/lib/Wrapper/GroupQuotaWrapper.php#35 ``` Server version affected: >= 31 Signed-off-by: Vitor Mattos <vitor@php.rio>
1 parent cca9a0d commit 51c5a92

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/Wrapper/GroupQuotaWrapper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
namespace OCA\GroupQuota\Wrapper;
2323

2424
use OC\Files\Storage\Wrapper\Quota;
25+
use OCP\Files\Cache\ICache;
2526

2627
class GroupQuotaWrapper extends Quota {
2728
/** @var int */
@@ -32,7 +33,7 @@ public function __construct($parameters) {
3233
$this->rootSize = $parameters['root_size'];
3334
}
3435

35-
public function getCache($path = '', $storage = null) {
36+
public function getCache($path = '', $storage = null): ICache {
3637
$parentCache = parent::getCache($path, $storage);
3738
return new GroupUsedSpaceCacheWrapper($parentCache, $this->sizeRoot, $this->rootSize);
3839
}

0 commit comments

Comments
 (0)