mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
chore: better type hints for getAvailability
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
2970232790
commit
17104bf3a0
2 changed files with 2 additions and 2 deletions
|
|
@ -126,7 +126,7 @@ class Storage {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return array [ available, last_checked ]
|
||||
* @return array{available: bool, last_checked: int}
|
||||
*/
|
||||
public function getAvailability() {
|
||||
if ($row = self::getStorageById($this->storageId)) {
|
||||
|
|
|
|||
|
|
@ -711,7 +711,7 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage,
|
|||
}
|
||||
|
||||
/**
|
||||
* @return array [ available, last_checked ]
|
||||
* @return array{available: bool, last_checked: int}
|
||||
*/
|
||||
public function getAvailability(): array {
|
||||
return $this->getStorageCache()->getAvailability();
|
||||
|
|
|
|||
Loading…
Reference in a new issue