Skip to content

Commit

Permalink
Update core/Controller/LanguageModelApiController.php
Browse files Browse the repository at this point in the history
Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr and provokateurin authored Jul 11, 2023
1 parent 069962d commit b7c3b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Controller/LanguageModelApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function taskTypes(): DataResponse {
* @param string $type The task type
* @param string $appId The originating app ID
* @param string $identifier An identifier to identify this task
* @return DataResponse<Http::STATUS_OK,array{task: array{id: int, type: string, status: int, userId: string, appId: string, input: string, output: string, identifier: string}},array{}> | DataResponse<Http::STATUS_PRECONDITION_FAILED | Http::STATUS_BAD_REQUEST, array{message: string}, array{}>
* @return DataResponse<Http::STATUS_OK, array{task: array{id: int, type: string, status: int, userId: string, appId: string, input: string, output: string, identifier: string}}, array{}>| DataResponse<Http::STATUS_PRECONDITION_FAILED|Http::STATUS_BAD_REQUEST, array{message: string}, array{}>

Check failure on line 74 in core/Controller/LanguageModelApiController.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

MoreSpecificReturnType

core/Controller/LanguageModelApiController.php:74:13: MoreSpecificReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200|400|412, array{message?: string, task?: array{appId: string, id: int, identifier: string, input: string, output: string, status: int, type: string, userId: string}}, array<never, never>>' for OC\Core\Controller\LanguageModelApiController::schedule is more specific than the inferred return type 'OCP\AppFramework\Http\DataResponse<200|400|412, array{message?: string, task?: mixed}, array<never, never>>' (see https://psalm.dev/070)

Check failure

Code scanning / Psalm

MoreSpecificReturnType Error

The declared return type 'OCP\AppFramework\Http\DataResponse<200|400|412, array{message?: string, task?: array{appId: string, id: int, identifier: string, input: string, output: string, status: int, type: string, userId: string}}, array<never, never>>' for OC\Core\Controller\LanguageModelApiController::schedule is more specific than the inferred return type 'OCP\AppFramework\Http\DataResponse<200|400|412, array{message?: string, task?: mixed}, array<never, never>>'
*
* 200: Task scheduled
* 400: Task type does not exist
Expand Down

0 comments on commit b7c3b50

Please sign in to comment.