Skip to content

Commit 7bb0d58

Browse files
committed
Support nc 27
Signed-off-by: greta <[email protected]>
1 parent 5f2cf96 commit 7bb0d58

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This product includes GeoLite2 data created by MaxMind, available from [maxmind.
3333
<screenshot>https://github.com/nextcloud/terms_of_service/raw/master/docs/notification-and-settings.png</screenshot>
3434

3535
<dependencies>
36-
<nextcloud min-version="28" max-version="31" />
36+
<nextcloud min-version="27" max-version="31" />
3737
</dependencies>
3838

3939
<repair-steps>

lib/Filesystem/StorageWrapper.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,47 +24,47 @@ public function __construct($parameters) {
2424
$this->helper = new Helper($parameters['checker'], $this->mountPoint);
2525
}
2626

27-
public function isCreatable(string $path): bool {
27+
public function isCreatable($path): bool {
2828
if(!$this->helper->verifyAccess($path)) {
2929
return false;
3030
}
3131

3232
return $this->storage->isCreatable($path);
3333
}
3434

35-
public function isUpdatable(string $path): bool {
35+
public function isUpdatable($path): bool {
3636
if(!$this->helper->verifyAccess($path)) {
3737
return false;
3838
}
3939

4040
return $this->storage->isUpdatable($path);
4141
}
4242

43-
public function isDeletable(string $path): bool {
43+
public function isDeletable($path): bool {
4444
if(!$this->helper->verifyAccess($path)) {
4545
return false;
4646
}
4747

4848
return $this->storage->isDeletable($path);
4949
}
5050

51-
public function isReadable(string $path): bool {
51+
public function isReadable($path): bool {
5252
if(!$this->helper->verifyAccess($path)) {
5353
return false;
5454
}
5555

5656
return $this->storage->isReadable($path);
5757
}
5858

59-
public function isSharable(string $path): bool {
59+
public function isSharable($path): bool {
6060
if(!$this->helper->verifyAccess($path)) {
6161
return false;
6262
}
6363

6464
return $this->storage->isReadable($path);
6565
}
6666

67-
public function fopen(string $path, string $mode) {
67+
public function fopen($path, $mode) {
6868
if ($this->helper->verifyAccess($path)) {
6969
return $this->storage->fopen($path, $mode);
7070
}
@@ -76,10 +76,9 @@ public function fopen(string $path, string $mode) {
7676
* get a cache instance for the storage
7777
*
7878
* @param string $path
79-
* @param \OC\Files\Storage\Storage (optional) the storage to pass to the cache
8079
* @return \OC\Files\Cache\Cache
8180
*/
82-
public function getCache(string $path = '', ?IStorage $storage = null): ICache {
81+
public function getCache($path = '', $storage = null): ICache {
8382
if (!$storage) {
8483
$storage = $this;
8584
}

0 commit comments

Comments
 (0)