diff --git a/lib/Controller/WopiController.php b/lib/Controller/WopiController.php index de42fbc648..3bc0b43235 100644 --- a/lib/Controller/WopiController.php +++ b/lib/Controller/WopiController.php @@ -278,7 +278,7 @@ private function setFederationFileInfo(Wopi $wopi, $response) { #[NoCSRFRequired] #[PublicPage] #[FrontpageRoute(verb: 'GET', url: 'wopi/files/{fileId}/contents')] - public function getFile(string $fileId, string $access_token): JSONResponse|StreamResponse { + public function getFile(string $fileId, string $access_token): JSONResponse|StreamResponse|Http\Response { [$fileId, , $version] = Helper::parseFileId($fileId); try {