chore: better type hints for `getAvailability`

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/56406/head
Robin Appelman 2025-11-06 20:09:17 +07:00 committed by backportbot[bot]
parent 2221c69219
commit edb370d2ac
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)) {

@ -710,7 +710,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();