Switch to task processing #159
Annotations
10 errors and 1 warning
lib/Controller/AssistantApiController.php#L180
lib/Controller/AssistantApiController.php:180:13: InvalidTemplateParam: Extended template param H of OCP\AppFramework\Http\DataDownloadResponse<200, string, string> expects type array<string, mixed>, type string given (see https://psalm.dev/183)
|
lib/Controller/AssistantApiController.php#L180
lib/Controller/AssistantApiController.php:180:13: InvalidReturnType: The declared return type 'OCP\AppFramework\Http\DataDownloadResponse<200, string, string>|OCP\AppFramework\Http\DataResponse<404, array{message: string}, array<never, never>>' for OCA\Assistant\Controller\AssistantApiController::displayUserFile is incorrect, got 'OCP\AppFramework\Http\DataDownloadResponse<200, string, array<never, never>>|OCP\AppFramework\Http\DataResponse<404, array{message: 'Not found'}, array<never, never>>' (see https://psalm.dev/011)
|
lib/Controller/AssistantApiController.php#L193
lib/Controller/AssistantApiController.php:193:11: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataDownloadResponse<200, string, array<never, never>>' does not match the declared return type 'OCP\AppFramework\Http\DataDownloadResponse<200, string, string>|OCP\AppFramework\Http\DataResponse<404, array{message: string}, array<never, never>>' for OCA\Assistant\Controller\AssistantApiController::displayUserFile (see https://psalm.dev/128)
|
lib/Controller/AssistantApiController.php#L249
lib/Controller/AssistantApiController.php:249:13: InvalidTemplateParam: Extended template param H of OCP\AppFramework\Http\DataDownloadResponse<200, string, string> expects type array<string, mixed>, type string given (see https://psalm.dev/183)
|
lib/Controller/AssistantApiController.php#L249
lib/Controller/AssistantApiController.php:249:13: InvalidReturnType: The declared return type 'OCP\AppFramework\Http\DataDownloadResponse<200, string, string>|OCP\AppFramework\Http\DataResponse<404, '', array<never, never>>|OCP\AppFramework\Http\RedirectResponse<303, array<never, never>>' for OCA\Assistant\Controller\AssistantApiController::getOutputFilePreview is incorrect, got 'OCP\AppFramework\Http\DataDownloadResponse<200, mixed, array<never, never>>|OCP\AppFramework\Http\DataResponse<404, '', array<never, never>>|OCP\AppFramework\Http\RedirectResponse<303, array<never, never>>' (see https://psalm.dev/011)
|
lib/Controller/AssistantApiController.php#L266
lib/Controller/AssistantApiController.php:266:12: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataDownloadResponse<200, mixed, array<never, never>>' does not match the declared return type 'OCP\AppFramework\Http\DataDownloadResponse<200, string, string>|OCP\AppFramework\Http\DataResponse<404, '', array<never, never>>|OCP\AppFramework\Http\RedirectResponse<303, array<never, never>>' for OCA\Assistant\Controller\AssistantApiController::getOutputFilePreview (see https://psalm.dev/128)
|
lib/Controller/AssistantController.php#L60
lib/Controller/AssistantController.php:60:12: TooManyArguments: Too many arguments for OCP\TaskProcessing\Task::__construct - expecting 0 but saw 5 (see https://psalm.dev/026)
|
lib/Controller/ChattyLLMController.php#L461
lib/Controller/ChattyLLMController.php:461:11: TooManyArguments: Too many arguments for OCP\TaskProcessing\Task::__construct - expecting 0 but saw 5 (see https://psalm.dev/026)
|
lib/Service/AssistantService.php#L113
lib/Service/AssistantService.php:113:13: MoreSpecificReturnType: The declared return type 'array<array-key, array{description: string, id: string, inputShape: array<string, array{description: string, name: string, type: string}>, name: string, optionalInputShape: array<string, array{description: string, name: string, type: string}>, optionalOutputShape: array<string, array{description: string, name: string, type: string}>, outputShape: array<string, array{description: string, name: string, type: string}>, priority: int}>' for OCA\Assistant\Service\AssistantService::getAvailableTaskTypes is more specific than the inferred return type 'array<array-key, array{description: string, id: string, inputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor|array{description: string, name: string, type: string}>, name: string, optionalInputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor|array{description: string, name: string, type: string}>, optionalOutputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor|array{description: string, name: string, type: string}>, outputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor|array{description: string, name: string, type: string}>, priority: int}>' (see https://psalm.dev/070)
|
lib/Service/AssistantService.php#L119
lib/Service/AssistantService.php:119:7: RedundantCondition: Operand of type true is always truthy (see https://psalm.dev/122)
|
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
This job failed
Loading