chore: better type hints for getAvailability

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2025-11-06 20:09:17 +01:00
parent 2970232790
commit 17104bf3a0
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB
2 changed files with 2 additions and 2 deletions

View file

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

View file

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