chore: better type hints for `getAvailability`

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/56255/head
Robin Appelman 10 months ago
parent 2970232790
commit 17104bf3a0
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 2
      lib/private/Files/Cache/Storage.php
  2. 2
      lib/private/Files/Storage/Common.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)) {

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

Loading…
Cancel
Save