Fix psalm errors #92
code_checks.yaml
on: pull_request
Annotations
11 errors
MissingTemplateParam:
src/Form/DataTransformer/CurrencyToArrayTransformer.php#L17
src/Form/DataTransformer/CurrencyToArrayTransformer.php:17:45: MissingTemplateParam: Tbbc\MoneyBundle\Form\DataTransformer\CurrencyToArrayTransformer has missing template params when extending Symfony\Component\Form\DataTransformerInterface, expecting 2 (see https://psalm.dev/182)
|
MissingTemplateParam:
src/Form/DataTransformer/MoneyToArrayTransformer.php#L17
src/Form/DataTransformer/MoneyToArrayTransformer.php:17:42: MissingTemplateParam: Tbbc\MoneyBundle\Form\DataTransformer\MoneyToArrayTransformer has missing template params when extending Symfony\Component\Form\DataTransformerInterface, expecting 2 (see https://psalm.dev/182)
|
MissingParamType:
src/Form/DataTransformer/MoneyToArrayTransformer.php#L31
src/Form/DataTransformer/MoneyToArrayTransformer.php:31:31: MissingParamType: Parameter $value has no provided type (see https://psalm.dev/154)
|
ImplementedReturnTypeMismatch:
src/Form/DataTransformer/SimpleMoneyToArrayTransformer.php#L24
src/Form/DataTransformer/SimpleMoneyToArrayTransformer.php:24:22: ImplementedReturnTypeMismatch: The inherited return type 'array{tbbc_amount: string, tbbc_currency: Money\Currency}|null' for Tbbc\MoneyBundle\Form\DataTransformer\MoneyToArrayTransformer::transform is different to the implemented return type for Tbbc\MoneyBundle\Form\DataTransformer\SimpleMoneyToArrayTransformer::transform 'array{tbbc_amount: string}|null' (see https://psalm.dev/123)
|
MissingParamType:
src/Form/DataTransformer/SimpleMoneyToArrayTransformer.php#L26
src/Form/DataTransformer/SimpleMoneyToArrayTransformer.php:26:31: MissingParamType: Parameter $value has no provided type (see https://psalm.dev/154)
|
psalm
Process completed with exit code 2.
|
PHP 8.2 - 7.0.* - prefer-stable
Process completed with exit code 1.
|
PHP 8.3 - 7.0.* - prefer-stable
Process completed with exit code 1.
|
PHP 8.1 - 6.4.* - prefer-stable
Process completed with exit code 1.
|
PHP 8.1 - 5.4.* - prefer-stable
Process completed with exit code 1.
|
PHP 8.1 - 5.4.* - prefer-lowest
Process completed with exit code 1.
|