New OCS endpoint to list text processing tasks #29063
Annotations
4 errors
core/Controller/TextProcessingApiController.php#L169
core/Controller/TextProcessingApiController.php:169:13: InvalidReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200|500, array{message?: string, tasks?: list{array{appId: string, id: int|null, identifier: string, input: string, output: null|string, status: 0|1|2|3|4, type: string, userId: null|string}}}, array<never, never>>' for OC\Core\Controller\TextProcessingApiController::listTasksByApp is incorrect, got 'OCP\AppFramework\Http\DataResponse<200|500, array{message?: string, tasks?: array<array-key, array{appId: string, id: int|null, identifier: string, input: string, output: null|string, status: 0|1|2|3|4, type: class-string<T:OCP\TextProcessing\Task as OCP\TextProcessing\ITaskType>, userId: null|string}>}, array<never, never>>' (see https://psalm.dev/011)
|
core/Controller/TextProcessingApiController.php#L175
core/Controller/TextProcessingApiController.php:175:11: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<200, array{tasks: array<never, never>}, array<never, never>>' does not match the declared return type 'OCP\AppFramework\Http\DataResponse<200|500, array{message?: string, tasks?: list{array{appId: string, id: int|null, identifier: string, input: string, output: null|string, status: 0|1|2|3|4, type: string, userId: null|string}}}, array<never, never>>' for OC\Core\Controller\TextProcessingApiController::listTasksByApp (see https://psalm.dev/128)
|
core/Controller/TextProcessingApiController.php#L185
core/Controller/TextProcessingApiController.php:185:11: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<200, array{tasks: array<array-key, array{appId: string, id: int|null, identifier: string, input: string, output: null|string, status: 0|1|2|3|4, type: class-string<T:OCP\TextProcessing\Task as OCP\TextProcessing\ITaskType>, userId: null|string}>}, array<never, never>>' does not match the declared return type 'OCP\AppFramework\Http\DataResponse<200|500, array{message?: string, tasks?: list{array{appId: string, id: int|null, identifier: string, input: string, output: null|string, status: 0|1|2|3|4, type: string, userId: null|string}}}, array<never, never>>' for OC\Core\Controller\TextProcessingApiController::listTasksByApp (see https://psalm.dev/128)
|
|
The logs for this run have expired and are no longer available.
Loading