Skip to content

start to fix tests

start to fix tests #48

Triggered via push September 10, 2024 14:22
Status Failure
Total duration 30s
Artifacts

psalm.yml

on: push
Psalm check
17s
Psalm check
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
UndefinedMethod: lib/Command/ExportProject.php#L51
lib/Command/ExportProject.php:51:37: UndefinedMethod: Method OCA\Cospend\Service\LocalProjectService::exportCsvProject does not exist (see https://psalm.dev/022)
UndefinedClass: lib/Controller/ApiController.php#L86
lib/Controller/ApiController.php:86:57: UndefinedClass: Class, interface or enum named GuzzleHttp\Exception\ClientException does not exist (see https://psalm.dev/019)
InvalidReturnType: lib/Controller/ApiController.php#L100
lib/Controller/ApiController.php:100:13: InvalidReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200|400, array<string, array<array-key, array<array-key, array{accesslevel?: 0|1|2|3|4, b?: int, circleid?: string, g?: int, groupid?: string, id?: int, label?: null|string, manually_added?: bool, name?: string, password?: null|string, r?: int, token?: string, type?: 'c'|'g'|'l'|'u', userid?: string}|null|scalar>|float>|null|scalar>, array<never, never>>' for OCA\Cospend\Controller\ApiController::createProject is incorrect, got 'OCP\AppFramework\Http\DataResponse<400, string, array<never, never>>|OCP\AppFramework\Http\DataResponse<int, array<array-key, mixed>, array<never, never>>' (see https://psalm.dev/011)
InvalidReturnStatement: lib/Controller/ApiController.php#L113
lib/Controller/ApiController.php:113:11: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<400, 'project already exists', array<never, never>>' does not match the declared return type 'OCP\AppFramework\Http\DataResponse<200|400, array<string, array<array-key, array<array-key, array{accesslevel?: 0|1|2|3|4, b?: int, circleid?: string, g?: int, groupid?: string, id?: int, label?: null|string, manually_added?: bool, name?: string, password?: null|string, r?: int, token?: string, type?: 'c'|'g'|'l'|'u', userid?: string}|null|scalar>|float>|null|scalar>, array<never, never>>' for OCA\Cospend\Controller\ApiController::createProject (see https://psalm.dev/128)
LessSpecificReturnStatement: lib/Controller/ApiController.php#L122
lib/Controller/ApiController.php:122:11: LessSpecificReturnStatement: The type 'OCP\AppFramework\Http\DataResponse<int, array<array-key, mixed>, array<never, never>>' is more general than the declared return type 'OCP\AppFramework\Http\DataResponse<200|400, array<string, array<array-key, array<array-key, array{accesslevel?: 0|1|2|3|4, b?: int, circleid?: string, g?: int, groupid?: string, id?: int, label?: null|string, manually_added?: bool, name?: string, password?: null|string, r?: int, token?: string, type?: 'c'|'g'|'l'|'u', userid?: string}|null|scalar>|float>|null|scalar>, array<never, never>>' for OCA\Cospend\Controller\ApiController::createProject (see https://psalm.dev/129)
InvalidReturnStatement: lib/Controller/ApiController.php#L124
lib/Controller/ApiController.php:124:11: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<400, string, array<never, never>>' does not match the declared return type 'OCP\AppFramework\Http\DataResponse<200|400, array<string, array<array-key, array<array-key, array{accesslevel?: 0|1|2|3|4, b?: int, circleid?: string, g?: int, groupid?: string, id?: int, label?: null|string, manually_added?: bool, name?: string, password?: null|string, r?: int, token?: string, type?: 'c'|'g'|'l'|'u', userid?: string}|null|scalar>|float>|null|scalar>, array<never, never>>' for OCA\Cospend\Controller\ApiController::createProject (see https://psalm.dev/128)
MoreSpecificReturnType: lib/Controller/ApiController.php#L158
lib/Controller/ApiController.php:158:13: MoreSpecificReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200, array{active_members: array<array-key, array{activated: bool, color: array{b: int, g: int, r: int}, id: int, lastchanged: int, name: string, userid: null|string, weight: float}>, archived_ts: int, autoexport: string, balance: array<array-key, float>, categories: array<array-key, array{color: null|string, icon: null|string, id: int, name: null|string, order: int, projectid: string}>, categorysort: string, currencies: array<array-key, array{exchange_rate: float, id: int, name: string, projectid: string}>, currencyname: string, deletiondisabled: bool, email: null|string, id: int, lastchanged: int, members: array<array-key, array{activated: bool, color: array{b: int, g: int, r: int}, id: int, lastchanged: int, name: string, userid: null|string, weight: float}>, myaccesslevel: int, name: string, nb_bills: int, nb_trashbin_bills: int, paymentmodes: array<array-key, array{color: null|string, icon: null|string, id: int, name: null|string, order: int, projectid: string}>, paymentmodesort: string, shares: array<array-key, array<array-key, array{accesslevel: 0|1|2|3|4, circleid?: string, groupid?: string, id: int, label?: null|string, manually_added?: bool, name?: string, password?: null|string, token?: string, type: 'c'|'g'|'l'|'u', userid?: string}>>, total_spent: float, userid: string}, array<never, never>>' for OCA\Cospend\Controller\ApiController::getProjectInfo is more specific than the inferred return type 'OCP\AppFramework\Http\DataResponse<200, array<array-key, mixed>|null, array<never, never>>|OCP\AppFramework\Http\DataResponse<int, array<array-key, mixed>, array<never, never>>|OCP\AppFramework\Http\DataResponse<int, array<array-key, mixed>|null|object|scalar, array<string, mixed>>' (see https://psalm.dev/070)
UndefinedClass: lib/Controller/ApiController.php#L169
lib/Controller/ApiController.php:169:12: UndefinedClass: Class, interface or enum named GuzzleHttp\Exception\ClientException does not exist (see https://psalm.dev/019)
InvalidReturnStatement: lib/Controller/ApiController.php#L170
lib/Controller/ApiController.php:170:11: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<int, array<array-key, mixed>|null|object|scalar, array<string, mixed>>' does not match the declared return type 'OCP\AppFramework\Http\DataResponse<200, array{active_members: array<array-key, array{activated: bool, color: array{b: int, g: int, r: int}, id: int, lastchanged: int, name: string, userid: null|string, weight: float}>, archived_ts: int, autoexport: string, balance: array<array-key, float>, categories: array<array-key, array{color: null|string, icon: null|string, id: int, name: null|string, order: int, projectid: string}>, categorysort: string, currencies: array<array-key, array{exchange_rate: float, id: int, name: string, projectid: string}>, currencyname: string, deletiondisabled: bool, email: null|string, id: int, lastchanged: int, members: array<array-key, array{activated: bool, color: array{b: int, g: int, r: int}, id: int, lastchanged: int, name: string, userid: null|string, weight: float}>, myaccesslevel: int, name: string, nb_bills: int, nb_trashbin_bills: int, paymentmodes: array<array-key, array{color: null|string, icon: null|string, id: int, name: null|string, order: int, projectid: string}>, paymentmodesort: string, shares: array<array-key, array<array-key, array{accesslevel: 0|1|2|3|4, circleid?: string, groupid?: string, id: int, label?: null|string, manually_added?: bool, name?: string, password?: null|string, token?: string, type: 'c'|'g'|'l'|'u', userid?: string}>>, total_spent: float, userid: string}, array<never, never>>' for OCA\Cospend\Controller\ApiController::getProjectInfo (see https://psalm.dev/128)
LessSpecificReturnStatement: lib/Controller/ApiController.php#L172
lib/Controller/ApiController.php:172:11: LessSpecificReturnStatement: The type 'OCP\AppFramework\Http\DataResponse<int, array<array-key, mixed>, array<never, never>>' is more general than the declared return type 'OCP\AppFramework\Http\DataResponse<200, array{active_members: array<array-key, array{activated: bool, color: array{b: int, g: int, r: int}, id: int, lastchanged: int, name: string, userid: null|string, weight: float}>, archived_ts: int, autoexport: string, balance: array<array-key, float>, categories: array<array-key, array{color: null|string, icon: null|string, id: int, name: null|string, order: int, projectid: string}>, categorysort: string, currencies: array<array-key, array{exchange_rate: float, id: int, name: string, projectid: string}>, currencyname: string, deletiondisabled: bool, email: null|string, id: int, lastchanged: int, members: array<array-key, array{activated: bool, color: array{b: int, g: int, r: int}, id: int, lastchanged: int, name: string, userid: null|string, weight: float}>, myaccesslevel: int, name: string, nb_bills: int, nb_trashbin_bills: int, paymentmodes: array<array-key, array{color: null|string, icon: null|string, id: int, name: null|string, order: int, projectid: string}>, paymentmodesort: string, shares: array<array-key, array<array-key, array{accesslevel: 0|1|2|3|4, circleid?: string, groupid?: string, id: int, label?: null|string, manually_added?: bool, name?: string, password?: null|string, token?: string, type: 'c'|'g'|'l'|'u', userid?: string}>>, total_spent: float, userid: string}, array<never, never>>' for OCA\Cospend\Controller\ApiController::getProjectInfo (see https://psalm.dev/129)
Psalm check
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab, shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/