From edb370d2ace62df275b592ff883df83ef88c2535 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 6 Nov 2025 20:09:17 +0100 Subject: [PATCH] chore: better type hints for `getAvailability` Signed-off-by: Robin Appelman --- lib/private/Files/Cache/Storage.php | 2 +- lib/private/Files/Storage/Common.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Files/Cache/Storage.php b/lib/private/Files/Cache/Storage.php index 1a3bda58e6a..a2fdfc76cc7 100644 --- a/lib/private/Files/Cache/Storage.php +++ b/lib/private/Files/Cache/Storage.php @@ -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)) { diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php index ca0e38774c8..d0126e38f02 100644 --- a/lib/private/Files/Storage/Common.php +++ b/lib/private/Files/Storage/Common.php @@ -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();