Fix psalm errors #114
code_checks.yaml
on: pull_request
Annotations
9 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)
|
UndefinedDocblockClass:
src/Form/DataTransformer/CurrencyToArrayTransformer.php#L22
src/Form/DataTransformer/CurrencyToArrayTransformer.php:22:21: UndefinedDocblockClass: Docblock-defined class, interface or enum named Tbbc\MoneyBundle\Form\DataTransformer\TValue does not exist (see https://psalm.dev/200)
|
MoreSpecificImplementedParamType:
src/Form/DataTransformer/CurrencyToArrayTransformer.php#L24
src/Form/DataTransformer/CurrencyToArrayTransformer.php:24:37: MoreSpecificImplementedParamType: Argument 1 of Tbbc\MoneyBundle\Form\DataTransformer\CurrencyToArrayTransformer::transform has the more specific type 'Tbbc\MoneyBundle\Form\DataTransformer\TValue|null', expecting 'mixed' as defined by Symfony\Component\Form\DataTransformerInterface::transform (see https://psalm.dev/140)
|
MixedInferredReturnType:
src/Form/DataTransformer/CurrencyToArrayTransformer.php#L24
src/Form/DataTransformer/CurrencyToArrayTransformer.php:24:46: MixedInferredReturnType: Could not verify return type 'array<array-key, mixed>|null' for Tbbc\MoneyBundle\Form\DataTransformer\CurrencyToArrayTransformer::transform (see https://psalm.dev/047)
|
UndefinedDocblockClass:
src/Form/DataTransformer/CurrencyToArrayTransformer.php#L39
src/Form/DataTransformer/CurrencyToArrayTransformer.php:39:21: UndefinedDocblockClass: Docblock-defined class, interface or enum named Tbbc\MoneyBundle\Form\DataTransformer\TTransformedValue does not exist (see https://psalm.dev/200)
|
MoreSpecificImplementedParamType:
src/Form/DataTransformer/CurrencyToArrayTransformer.php#L41
src/Form/DataTransformer/CurrencyToArrayTransformer.php:41:44: MoreSpecificImplementedParamType: Argument 1 of Tbbc\MoneyBundle\Form\DataTransformer\CurrencyToArrayTransformer::reverseTransform has the more specific type 'Tbbc\MoneyBundle\Form\DataTransformer\TTransformedValue|null', expecting 'mixed' as defined by Symfony\Component\Form\DataTransformerInterface::reverseTransform (see https://psalm.dev/140)
|
MixedInferredReturnType:
src/Form/DataTransformer/CurrencyToArrayTransformer.php#L41
src/Form/DataTransformer/CurrencyToArrayTransformer.php:41:53: MixedInferredReturnType: Could not verify return type 'Money\Currency|null' for Tbbc\MoneyBundle\Form\DataTransformer\CurrencyToArrayTransformer::reverseTransform (see https://psalm.dev/047)
|
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)
|
psalm
Process completed with exit code 2.
|