Skip to content

fix: add status and created_at fields to file upload response #7552

fix: add status and created_at fields to file upload response

fix: add status and created_at fields to file upload response #7552

Triggered via pull request December 11, 2025 12:48
Status Failure
Total duration 1m 0s
Artifacts

psalm.yml

on: pull_request
static-psalm-analysis
55s
static-psalm-analysis
Fit to window
Zoom out
Zoom in

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{created_at?: string, id?: int, message: string, name?: string, status?: int, statusText?: string}, array<never, never>>' for OCA\Libresign\Controller\FileController::save (see https://psalm.dev/128)
MoreSpecificReturnType: lib/Controller/FileController.php#L403
lib/Controller/FileController.php:403:13: MoreSpecificReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200|422, array{created_at?: string, id?: int, message: string, name?: string, status?: int, statusText?: string}, array<never, never>>' for OCA\Libresign\Controller\FileController::save is more specific than the inferred return type '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/070)