Fix psalm errors #116
Annotations
7 errors
Run vendor/bin/psalm:
src/Form/DataTransformer/CurrencyToArrayTransformer.php#L24
src/Form/DataTransformer/CurrencyToArrayTransformer.php:24:40: MethodSignatureMismatch: Argument 1 of Tbbc\MoneyBundle\Form\DataTransformer\CurrencyToArrayTransformer::transform has wrong type 'Money\Currency', expecting 'mixed' as defined by Symfony\Component\Form\DataTransformerInterface::transform (see https://psalm.dev/042)
|
Run vendor/bin/psalm:
src/Form/DataTransformer/CurrencyToArrayTransformer.php#L24
src/Form/DataTransformer/CurrencyToArrayTransformer.php:24:40: MoreSpecificImplementedParamType: Argument 1 of Tbbc\MoneyBundle\Form\DataTransformer\CurrencyToArrayTransformer::transform has the more specific type 'Money\Currency', expecting 'Money\Currency|null' as defined by Symfony\Component\Form\DataTransformerInterface::transform (see https://psalm.dev/140)
|
Run vendor/bin/psalm:
src/Form/DataTransformer/CurrencyToArrayTransformer.php#L39
src/Form/DataTransformer/CurrencyToArrayTransformer.php:39:44: MethodSignatureMismatch: Argument 1 of Tbbc\MoneyBundle\Form\DataTransformer\CurrencyToArrayTransformer::reverseTransform has wrong type 'array<array-key, mixed>', expecting 'mixed' as defined by Symfony\Component\Form\DataTransformerInterface::reverseTransform (see https://psalm.dev/042)
|
Run vendor/bin/psalm:
src/Form/DataTransformer/CurrencyToArrayTransformer.php#L39
src/Form/DataTransformer/CurrencyToArrayTransformer.php:39:44: MoreSpecificImplementedParamType: Argument 1 of Tbbc\MoneyBundle\Form\DataTransformer\CurrencyToArrayTransformer::reverseTransform has the more specific type 'array<array-key, mixed>', expecting 'array<array-key, mixed>|null' as defined by Symfony\Component\Form\DataTransformerInterface::reverseTransform (see https://psalm.dev/140)
|
Run vendor/bin/psalm:
src/Form/DataTransformer/CurrencyToArrayTransformer.php#L45
src/Form/DataTransformer/CurrencyToArrayTransformer.php:45:14: DocblockTypeContradiction: Docblock-defined type array<array-key, mixed> for $value is always array<array-key, mixed> (see https://psalm.dev/155)
|
Run vendor/bin/psalm:
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)
|
Run vendor/bin/psalm
Process completed with exit code 2.
|
The logs for this run have expired and are no longer available.
Loading