Agency #260
Annotations
5 errors
MoreSpecificReturnType:
lib/Controller/AssistantApiController.php#L79
lib/Controller/AssistantApiController.php:79:13: MoreSpecificReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200, array{types: list<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}>}, array<never, never>>' for OCA\Assistant\Controller\AssistantApiController::getAvailableTaskTypes is more specific than the inferred return type 'OCP\AppFramework\Http\DataResponse<200, array{types: 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}>}, array<never, never>>' (see https://psalm.dev/070)
|
LessSpecificReturnStatement:
lib/Controller/AssistantApiController.php#L88
lib/Controller/AssistantApiController.php:88:10: LessSpecificReturnStatement: The type 'OCP\AppFramework\Http\DataResponse<200, array{types: 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}>}, array<never, never>>' is more general than the declared return type 'OCP\AppFramework\Http\DataResponse<200, array{types: list<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}>}, array<never, never>>' for OCA\Assistant\Controller\AssistantApiController::getAvailableTaskTypes (see https://psalm.dev/129)
|
MoreSpecificReturnType:
lib/Controller/AssistantApiController.php#L97
lib/Controller/AssistantApiController.php:97:13: MoreSpecificReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200, array{tasks: list<array{appId: string, completionExpectedAt: int|null, customId: null|string, endedAt: int|null, id: int, input: array<string, list<numeric|string>|numeric|string>, lastUpdated: int, output: array<string, list<numeric|string>|numeric|string>|null, progress: float|null, scheduledAt: int|null, startedAt: int|null, status: string, type: string, userId: null|string}>}, array<never, never>>|OCP\AppFramework\Http\DataResponse<404, '', array<never, never>>' for OCA\Assistant\Controller\AssistantApiController::getUserTasks is more specific than the inferred return type 'OCP\AppFramework\Http\DataResponse<200, array{tasks: array<array-key, array{appId: string, completionExpectedAt: int|null, customId: null|string, endedAt: int|null, id: int, input: array<string, list<numeric|string>|numeric|string>, lastUpdated: int, output: array<string, list<numeric|string>|numeric|string>|null, progress: float|null, scheduledAt: int|null, startedAt: int|null, status: 'STATUS_CANCELLED'|'STATUS_FAILED'|'STATUS_RUNNING'|'STATUS_SCHEDULED'|'STATUS_SUCCESSFUL'|'STATUS_UNKNOWN', type: string, userId: null|string}>}, array<never, never>>|OCP\AppFramework\Http\DataResponse<404, '', array<never, never>>' (see https://psalm.dev/070)
|
LessSpecificReturnStatement:
lib/Controller/AssistantApiController.php#L111
lib/Controller/AssistantApiController.php:111:12: LessSpecificReturnStatement: The type 'OCP\AppFramework\Http\DataResponse<200, array{tasks: array<array-key, array{appId: string, completionExpectedAt: int|null, customId: null|string, endedAt: int|null, id: int, input: array<string, list<numeric|string>|numeric|string>, lastUpdated: int, output: array<string, list<numeric|string>|numeric|string>|null, progress: float|null, scheduledAt: int|null, startedAt: int|null, status: 'STATUS_CANCELLED'|'STATUS_FAILED'|'STATUS_RUNNING'|'STATUS_SCHEDULED'|'STATUS_SUCCESSFUL'|'STATUS_UNKNOWN', type: string, userId: null|string}>}, array<never, never>>' is more general than the declared return type 'OCP\AppFramework\Http\DataResponse<200, array{tasks: list<array{appId: string, completionExpectedAt: int|null, customId: null|string, endedAt: int|null, id: int, input: array<string, list<numeric|string>|numeric|string>, lastUpdated: int, output: array<string, list<numeric|string>|numeric|string>|null, progress: float|null, scheduledAt: int|null, startedAt: int|null, status: string, type: string, userId: null|string}>}, array<never, never>>|OCP\AppFramework\Http\DataResponse<404, '', array<never, never>>' for OCA\Assistant\Controller\AssistantApiController::getUserTasks (see https://psalm.dev/129)
|
Psalm check
Process completed with exit code 2.
|