Add support for file question #1215
Annotations
8 errors
InvalidArgument:
lib/Controller/ApiController.php#L1094
lib/Controller/ApiController.php:1094:47: InvalidArgument: Argument 1 of OCP\AppFramework\OCS\OCSBadRequestException::__construct expects Exception|null, but OCP\AppFramework\Db\IMapperException provided (see https://psalm.dev/004)
|
UndefinedClass:
lib/Controller/ApiController.php#L1152
lib/Controller/ApiController.php:1152:22: UndefinedClass: Class, interface or enum named Ramsey\Uuid\Uuid does not exist (see https://psalm.dev/019)
|
InvalidArgument:
lib/Controller/ApiController.php#L1494
lib/Controller/ApiController.php:1494:47: InvalidArgument: Argument 1 of OCP\AppFramework\OCS\OCSBadRequestException::__construct expects Exception|null, but OCP\AppFramework\Db\IMapperException provided (see https://psalm.dev/004)
|
InvalidArgument:
lib/Service/SubmissionService.php#L334
lib/Service/SubmissionService.php:334:37: InvalidArgument: Argument 2 of OCA\Forms\Service\SubmissionService::exportData expects array<int, array<int, string>>, but list<non-empty-list<array{label: string, url: string}|mixed|null|string>> provided (see https://psalm.dev/004)
|
InvalidReturnType:
lib/Service/SubmissionService.php#L399
lib/Service/SubmissionService.php:399:74: InvalidReturnType: The declared return type 'bool' for /home/runner/actions-runner/_work/forms/forms/lib/service/submissionservice.php:399:11924:-:closure is incorrect, got 'bool|int<0, max>' (see https://psalm.dev/011)
|
InvalidReturnStatement:
lib/Service/SubmissionService.php#L405
lib/Service/SubmissionService.php:405:13: InvalidReturnStatement: The inferred type 'int<0, max>' does not match the declared return type 'bool' for /home/runner/actions-runner/_work/forms/forms/lib/service/submissionservice.php:399:11924:-:closure (see https://psalm.dev/128)
|
Static analysis
Process completed with exit code 2.
|
psalm-summary
Process completed with exit code 1.
|