Skip to content

fix: load signature methods #4809

fix: load signature methods

fix: load signature methods #4809

Triggered via pull request December 13, 2024 02:09
Status Failure
Total duration 45s
Artifacts

psalm.yml

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

Annotations

10 errors and 1 warning
InvalidTypeImport: lib/Controller/AccountController.php#L43
lib/Controller/AccountController.php:43:23: InvalidTypeImport: Type alias LibresignAccountFile imported from OCA\Libresign\ResponseDefinitions is not defined on the source class (see https://psalm.dev/233)
InvalidTypeImport: lib/Controller/AccountController.php#L44
lib/Controller/AccountController.php:44:23: InvalidTypeImport: Type alias LibresignCertificatePfxData imported from OCA\Libresign\ResponseDefinitions is not defined on the source class (see https://psalm.dev/233)
InvalidTypeImport: lib/Controller/AccountController.php#L45
lib/Controller/AccountController.php:45:23: InvalidTypeImport: Type alias LibresignFile imported from OCA\Libresign\ResponseDefinitions is not defined on the source class (see https://psalm.dev/233)
InvalidTypeImport: lib/Controller/AccountController.php#L46
lib/Controller/AccountController.php:46:23: InvalidTypeImport: Type alias LibresignPagination imported from OCA\Libresign\ResponseDefinitions is not defined on the source class (see https://psalm.dev/233)
InvalidReturnType: lib/Controller/AccountController.php#L301
lib/Controller/AccountController.php:301:13: InvalidReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200|404, array{data?: array<array-key, type-alias(OCA\Libresign\ResponseDefinitions::LibresignFile)>, message?: string, pagination?: type-alias(OCA\Libresign\ResponseDefinitions::LibresignPagination)}, array<never, never>>' for OCA\Libresign\Controller\AccountController::accountFileListToOwner is incorrect, got 'OCP\AppFramework\Http\DataResponse<200|404, array{data?: array<array-key, type-alias(OCA\Libresign\ResponseDefinitions::LibresignFile)>, message?: string, pagination?: array<array-key, mixed>}, array<never, never>>' (see https://psalm.dev/011)
InvalidReturnStatement: lib/Controller/AccountController.php#L313
lib/Controller/AccountController.php:313:11: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<200, array{data: array<array-key, type-alias(OCA\Libresign\ResponseDefinitions::LibresignFile)>, pagination: array<array-key, mixed>}, array<never, never>>' does not match the declared return type 'OCP\AppFramework\Http\DataResponse<200|404, array{data?: array<array-key, type-alias(OCA\Libresign\ResponseDefinitions::LibresignFile)>, message?: string, pagination?: type-alias(OCA\Libresign\ResponseDefinitions::LibresignPagination)}, array<never, never>>' for OCA\Libresign\Controller\AccountController::accountFileListToOwner (see https://psalm.dev/128)
InvalidReturnType: lib/Controller/AccountController.php#L330
lib/Controller/AccountController.php:330:13: InvalidReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200|404, array{data?: array<array-key, type-alias(OCA\Libresign\ResponseDefinitions::LibresignFile)>|null, message?: string, pagination?: type-alias(OCA\Libresign\ResponseDefinitions::LibresignPagination)}, array<never, never>>' for OCA\Libresign\Controller\AccountController::accountFileListToApproval is incorrect, got 'OCP\AppFramework\Http\DataResponse<200|404, array{data?: array<array-key, type-alias(OCA\Libresign\ResponseDefinitions::LibresignFile)>, message?: string, pagination?: array<array-key, mixed>}, array<never, never>>' (see https://psalm.dev/011)
InvalidReturnStatement: lib/Controller/AccountController.php#L342
lib/Controller/AccountController.php:342:11: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<200, array{data: array<array-key, type-alias(OCA\Libresign\ResponseDefinitions::LibresignFile)>, pagination: array<array-key, mixed>}, array<never, never>>' does not match the declared return type 'OCP\AppFramework\Http\DataResponse<200|404, array{data?: array<array-key, type-alias(OCA\Libresign\ResponseDefinitions::LibresignFile)>|null, message?: string, pagination?: type-alias(OCA\Libresign\ResponseDefinitions::LibresignPagination)}, array<never, never>>' for OCA\Libresign\Controller\AccountController::accountFileListToApproval (see https://psalm.dev/128)
InvalidTemplateParam: lib/Controller/AccountController.php#L498
lib/Controller/AccountController.php:498:13: InvalidTemplateParam: Extended template param T of OCP\AppFramework\Http\DataResponse<202, type-alias(OCA\Libresign\ResponseDefinitions::LibresignCertificatePfxData), array<never, never>> expects type array<array-key, mixed>|null|object|scalar, type type-alias(OCA\Libresign\ResponseDefinitions::LibresignCertificatePfxData) given (see https://psalm.dev/183)
InvalidReturnType: lib/Controller/AccountController.php#L498
lib/Controller/AccountController.php:498:13: InvalidReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<202, type-alias(OCA\Libresign\ResponseDefinitions::LibresignCertificatePfxData), array<never, never>>|OCP\AppFramework\Http\DataResponse<400, array{message: string}, array<never, never>>' for OCA\Libresign\Controller\AccountController::readPfxData is incorrect, got 'OCP\AppFramework\Http\DataResponse<202|400, array<array-key, array<array-key, mixed>|mixed|string>, array<never, never>>' (see https://psalm.dev/011)
static-psalm-analysis
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636