Skip to content

Commit dd1eb57

Browse files
blizzzbackportbot[bot]
authored andcommitted
fix(Controller): incomplete return type list
- a plain response is instantiated in two places - solves a PHP Error Signed-off-by: Arthur Schiwon <[email protected]>
1 parent 08e4636 commit dd1eb57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Controller/WopiController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ private function setFederationFileInfo(Wopi $wopi, $response) {
305305
#[NoCSRFRequired]
306306
#[PublicPage]
307307
#[FrontpageRoute(verb: 'GET', url: 'wopi/files/{fileId}/contents')]
308-
public function getFile(string $fileId, string $access_token): JSONResponse|StreamResponse {
308+
public function getFile(string $fileId, string $access_token): JSONResponse|StreamResponse|Http\Response {
309309
[$fileId, , $version] = Helper::parseFileId($fileId);
310310

311311
try {

0 commit comments

Comments
 (0)