Skip to content

Contexts in left navigation sidebar, edit and create modal #280

Contexts in left navigation sidebar, edit and create modal

Contexts in left navigation sidebar, edit and create modal #280

Triggered via pull request March 11, 2024 05:18
Status Failure
Total duration 1m 52s
Artifacts

psalm-matrix.yml

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

Annotations

7 errors
InvalidReturnType: lib/Controller/ContextController.php#L64
lib/Controller/ContextController.php:64:13: InvalidReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200|500, array{description?: string, iconName?: string, id?: int, message?: string, name?: string, owner?: string, ownerType?: int}, array<never, never>>' for OCA\Tables\Controller\ContextController::show is incorrect, got 'OCP\AppFramework\Http\DataResponse<200|404|500, array<array-key, mixed>, array<never, never>>' (see https://psalm.dev/011)
InvalidReturnStatement: lib/Controller/ContextController.php#L76
lib/Controller/ContextController.php:76:11: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<404, array{message: string}, array<never, never>>' does not match the declared return type 'OCP\AppFramework\Http\DataResponse<200|500, array{description?: string, iconName?: string, id?: int, message?: string, name?: string, owner?: string, ownerType?: int}, array<never, never>>' for OCA\Tables\Controller\ContextController::show (see https://psalm.dev/128)
static-psalm-analysis dev-stable28
Process completed with exit code 2.
InvalidReturnType: lib/Controller/ContextController.php#L64
lib/Controller/ContextController.php:64:13: InvalidReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200|500, array{description?: string, iconName?: string, id?: int, message?: string, name?: string, owner?: string, ownerType?: int}, array<never, never>>' for OCA\Tables\Controller\ContextController::show is incorrect, got 'OCP\AppFramework\Http\DataResponse<200|404|500, array<array-key, mixed>, array<never, never>>' (see https://psalm.dev/011)
InvalidReturnStatement: lib/Controller/ContextController.php#L76
lib/Controller/ContextController.php:76:11: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<404, array{message: string}, array<never, never>>' does not match the declared return type 'OCP\AppFramework\Http\DataResponse<200|500, array{description?: string, iconName?: string, id?: int, message?: string, name?: string, owner?: string, ownerType?: int}, array<never, never>>' for OCA\Tables\Controller\ContextController::show (see https://psalm.dev/128)
static-psalm-analysis dev-master
Process completed with exit code 2.
static-psalm-analysis-summary
Process completed with exit code 1.