mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -04:00
Merge pull request #46218 from nextcloud/artonge/fix/hash_return_type
This commit is contained in:
commit
dde0b48c93
2 changed files with 2 additions and 1 deletions
|
|
@ -400,7 +400,7 @@ class Local extends \OC\Files\Storage\Common {
|
|||
return $result;
|
||||
}
|
||||
|
||||
public function hash($type, $path, $raw = false) {
|
||||
public function hash($type, $path, $raw = false): string|false {
|
||||
return hash_file($type, $this->getSourcePath($path), $raw);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -315,6 +315,7 @@ class Availability extends Wrapper {
|
|||
return parent::hash($type, $path, $raw);
|
||||
} catch (StorageNotAvailableException $e) {
|
||||
$this->setUnavailable($e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue