fix: add status and created_at fields to file upload response #7551
psalm.yml
on: pull_request
static-psalm-analysis
49s
Annotations
3 errors
|
static-psalm-analysis
Process completed with exit code 2.
|
|
InvalidReturnStatement:
lib/Controller/FileController.php#L445
lib/Controller/FileController.php:445:11: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<200, array{created_at: string, id: int, message: string, name: non-falsy-string, status: int, statusText: null|string}, array<never, never>>' does not match the declared return type 'OCP\AppFramework\Http\DataResponse<200|422, array{etag?: string, id?: int, message: string, name?: string, path?: string, type?: string}, array<never, never>>' for OCA\Libresign\Controller\FileController::save (see https://psalm.dev/128)
|
|
InvalidReturnType:
lib/Controller/FileController.php#L403
lib/Controller/FileController.php:403:13: InvalidReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200|422, array{etag?: string, id?: int, message: string, name?: string, path?: string, type?: string}, array<never, never>>' for OCA\Libresign\Controller\FileController::save is incorrect, got 'OCP\AppFramework\Http\DataResponse<200|422, array{created_at?: string, id?: int, message: string, name?: non-falsy-string, status?: int, statusText?: null|string}, array<never, never>>' (see https://psalm.dev/011)
|