From 17104bf3a0351ea6a49dcae266a5c2f4f4e9c00d 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 4c1d89e3ef5..e197c3c9d26 100644 --- a/lib/private/Files/Storage/Common.php +++ b/lib/private/Files/Storage/Common.php @@ -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();