Skip to content

Commit

Permalink
Fix Preview Provider psalm
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Nov 4, 2021
1 parent f93bb7d commit f16eb30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/private/Preview/ProviderV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ protected function getLocalFile(File $file, int $maxSize = null): string {
$this->tmpFiles[] = $absPath;
return $absPath;
} else {
/** @var string */
return $file->getStorage()->getLocalFile($file->getInternalPath());
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Files/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public function touch($path, $mtime = null);
* The local version of the file can be temporary and doesn't have to be persistent across requests
*
* @param string $path
* @return string|bool
* @return string
* @since 6.0.0
*/
public function getLocalFile($path);
Expand Down

0 comments on commit f16eb30

Please sign in to comment.