Skip to content

Commit 17104bf

Browse files
committed
chore: better type hints for getAvailability
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 2970232 commit 17104bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/private/Files/Cache/Storage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public static function getNumericStorageId($storageId) {
126126
}
127127

128128
/**
129-
* @return array [ available, last_checked ]
129+
* @return array{available: bool, last_checked: int}
130130
*/
131131
public function getAvailability() {
132132
if ($row = self::getStorageById($this->storageId)) {

lib/private/Files/Storage/Common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ private function getLockLogger(): ?LoggerInterface {
711711
}
712712

713713
/**
714-
* @return array [ available, last_checked ]
714+
* @return array{available: bool, last_checked: int}
715715
*/
716716
public function getAvailability(): array {
717717
return $this->getStorageCache()->getAvailability();

0 commit comments

Comments
 (0)