Skip to content

Commit 651c837

Browse files
committed
fix: psalm issues
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
1 parent ed440b8 commit 651c837

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

‎lib/Controller/AssistantApiController.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ public function getOutputFilePreview(int $ocpTaskId, int $fileId, ?int $x = 100,
389389
*
390390
* @param int $ocpTaskId The task ID
391391
* @param int $fileId The task output file ID
392-
* @return DataDownloadResponse<Http::STATUS_OK, string, array{}>|DataResponse<Http::STATUS_NOT_FOUND, '', array{}>
392+
* @return DataDownloadResponse<Http::STATUS_OK, truthy-string, array{}>|DataResponse<Http::STATUS_NOT_FOUND, '', array{}>
393393
*
394394
* 200: The file preview has been generated and is returned
395395
* 404: The output file is not found

‎tests/psalm-baseline.xml‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
-->
66
<files psalm-version="5.26.1@d747f6500b38ac4f7dfc5edbcae6e4b637d7add0">
77
<file src="lib/Controller/AssistantApiController.php">
8-
<InvalidReturnStatement>
9-
<code><![CDATA[$response]]></code>
10-
</InvalidReturnStatement>
11-
<InvalidReturnType>
12-
<code><![CDATA[DataDownloadResponse<Http::STATUS_OK, string, array{}>|DataResponse<Http::STATUS_NOT_FOUND, '', array{}>]]></code>
13-
</InvalidReturnType>
148
<LessSpecificReturnStatement>
159
<code><![CDATA[new DataResponse(['tasks' => $serializedTasks])]]></code>
1610
<code><![CDATA[new DataResponse(['types' => $taskTypes])]]></code>

0 commit comments

Comments
 (0)