Skip to content

Commit 5c507fa

Browse files
authored
Merge pull request #48103 from nextcloud/backport/46218/stable28
2 parents a26da45 + 063a726 commit 5c507fa

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

lib/private/Files/Storage/Local.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ public function fopen($path, $mode) {
435435
return $result;
436436
}
437437

438-
public function hash($type, $path, $raw = false) {
438+
public function hash($type, $path, $raw = false): string|false {
439439
return hash_file($type, $this->getSourcePath($path), $raw);
440440
}
441441

lib/private/Files/Storage/Wrapper/Availability.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ public function hash($type, $path, $raw = false) {
334334
return parent::hash($type, $path, $raw);
335335
} catch (StorageNotAvailableException $e) {
336336
$this->setUnavailable($e);
337+
return false;
337338
}
338339
}
339340

0 commit comments

Comments
 (0)