Skip to content

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

Contexts in left navigation sidebar, edit and create modal

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

Triggered via pull request March 11, 2024 18:41
Status Failure
Total duration 2m 7s
Artifacts

psalm-matrix.yml

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

Annotations

21 errors
InvalidReturnType: lib/Controller/ContextController.php#L65
lib/Controller/ContextController.php:65: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#L77
lib/Controller/ContextController.php:77: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)
InvalidParamDefault: lib/Controller/ContextController.php#L91
lib/Controller/ContextController.php:91:12: InvalidParamDefault: Default value type array<never, never> for argument 4 of method OCA\Tables\Controller\ContextController::create does not match the given type array{id: int, permissions: int, type: int} (see https://psalm.dev/062)
InvalidReturnType: lib/Controller/ContextController.php#L114
lib/Controller/ContextController.php:114: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::update 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#L136
lib/Controller/ContextController.php:136: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::update (see https://psalm.dev/128)
InvalidReturnType: lib/Controller/ContextController.php#L147
lib/Controller/ContextController.php:147: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::transfer is incorrect, got 'OCP\AppFramework\Http\DataResponse<200|400|404|500, array<array-key, mixed>, array<never, never>>' (see https://psalm.dev/011)
InvalidReturnStatement: lib/Controller/ContextController.php#L166
lib/Controller/ContextController.php:166: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::transfer (see https://psalm.dev/128)
InvalidReturnStatement: lib/Controller/ContextController.php#L168
lib/Controller/ContextController.php:168:11: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<400, 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::transfer (see https://psalm.dev/128)
InvalidReturnType: lib/Controller/ContextController.php#L181
lib/Controller/ContextController.php:181: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::addNode 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#L197
lib/Controller/ContextController.php:197: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::addNode (see https://psalm.dev/128)
InvalidReturnType: lib/Controller/ContextController.php#L65
lib/Controller/ContextController.php:65: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#L77
lib/Controller/ContextController.php:77: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)
InvalidParamDefault: lib/Controller/ContextController.php#L91
lib/Controller/ContextController.php:91:12: InvalidParamDefault: Default value type array<never, never> for argument 4 of method OCA\Tables\Controller\ContextController::create does not match the given type array{id: int, permissions: int, type: int} (see https://psalm.dev/062)
InvalidReturnType: lib/Controller/ContextController.php#L114
lib/Controller/ContextController.php:114: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::update 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#L136
lib/Controller/ContextController.php:136: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::update (see https://psalm.dev/128)
InvalidReturnType: lib/Controller/ContextController.php#L147
lib/Controller/ContextController.php:147: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::transfer is incorrect, got 'OCP\AppFramework\Http\DataResponse<200|400|404|500, array<array-key, mixed>, array<never, never>>' (see https://psalm.dev/011)
InvalidReturnStatement: lib/Controller/ContextController.php#L166
lib/Controller/ContextController.php:166: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::transfer (see https://psalm.dev/128)
InvalidReturnStatement: lib/Controller/ContextController.php#L168
lib/Controller/ContextController.php:168:11: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<400, 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::transfer (see https://psalm.dev/128)
InvalidReturnType: lib/Controller/ContextController.php#L181
lib/Controller/ContextController.php:181: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::addNode 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#L197
lib/Controller/ContextController.php:197: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::addNode (see https://psalm.dev/128)
static-psalm-analysis-summary
Process completed with exit code 1.