Contexts API #284
Annotations
3 errors
Run coding standards check:
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)
|
Run coding standards check:
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)
|
Run coding standards check
Process completed with exit code 2.
|
Loading