Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Preview Provider psalm
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv committed Nov 4, 2021
commit f16eb30c338e00ce7b41ddea15ab149e07d57153
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