Skip to content

feat: expose the assistant folder's path in an api #829

feat: expose the assistant folder's path in an api

feat: expose the assistant folder's path in an api #829

Triggered via pull request June 18, 2026 11:56
Status Failure
Total duration 2m 4s
Artifacts

psalm.yml

on: pull_request
Matrix: static-analysis
static-psalm-analysis-summary
8s
static-psalm-analysis-summary
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
static-psalm-analysis dev-stable34
Process completed with exit code 2.
InvalidReturnStatement: lib/Controller/AssistantApiController.php#L464
lib/Controller/AssistantApiController.php:464:11: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<200, array{0: 401, error: 'User should be logged in'}, array<never, never>>' does not match the declared return type 'OCP\AppFramework\Http\DataResponse<200|401, array{error?: string, path?: string}, array<never, never>>' for OCA\Assistant\Controller\AssistantApiController::getAssistantFolderPath (see https://psalm.dev/128)
InvalidReturnType: lib/Controller/AssistantApiController.php#L456
lib/Controller/AssistantApiController.php:456:13: InvalidReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200|401, array{error?: string, path?: string}, array<never, never>>' for OCA\Assistant\Controller\AssistantApiController::getAssistantFolderPath is incorrect, got 'OCP\AppFramework\Http\DataResponse<200, array{0?: 401, error?: 'User should be logged in', path?: string}, array<never, never>>' (see https://psalm.dev/011)
static-psalm-analysis dev-stable33
Process completed with exit code 2.
InvalidReturnStatement: lib/Controller/AssistantApiController.php#L464
lib/Controller/AssistantApiController.php:464:11: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<200, array{0: 401, error: 'User should be logged in'}, array<never, never>>' does not match the declared return type 'OCP\AppFramework\Http\DataResponse<200|401, array{error?: string, path?: string}, array<never, never>>' for OCA\Assistant\Controller\AssistantApiController::getAssistantFolderPath (see https://psalm.dev/128)
InvalidReturnType: lib/Controller/AssistantApiController.php#L456
lib/Controller/AssistantApiController.php:456:13: InvalidReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200|401, array{error?: string, path?: string}, array<never, never>>' for OCA\Assistant\Controller\AssistantApiController::getAssistantFolderPath is incorrect, got 'OCP\AppFramework\Http\DataResponse<200, array{0?: 401, error?: 'User should be logged in', path?: string}, array<never, never>>' (see https://psalm.dev/011)
static-psalm-analysis dev-master
Process completed with exit code 2.
InvalidReturnStatement: lib/Controller/AssistantApiController.php#L464
lib/Controller/AssistantApiController.php:464:11: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<200, array{0: 401, error: 'User should be logged in'}, array<never, never>>' does not match the declared return type 'OCP\AppFramework\Http\DataResponse<200|401, array{error?: string, path?: string}, array<never, never>>' for OCA\Assistant\Controller\AssistantApiController::getAssistantFolderPath (see https://psalm.dev/128)
InvalidReturnType: lib/Controller/AssistantApiController.php#L456
lib/Controller/AssistantApiController.php:456:13: InvalidReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200|401, array{error?: string, path?: string}, array<never, never>>' for OCA\Assistant\Controller\AssistantApiController::getAssistantFolderPath is incorrect, got 'OCP\AppFramework\Http\DataResponse<200, array{0?: 401, error?: 'User should be logged in', path?: string}, array<never, never>>' (see https://psalm.dev/011)
static-psalm-analysis-summary
Process completed with exit code 1.
matrix
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/