Contexts in left navigation sidebar, edit and create modal #282
psalm-matrix.yml
on: pull_request
Matrix: static-analysis
static-psalm-analysis-summary
5s
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.
|