Fix psalm errors #117
Annotations
7 errors
Run vendor/bin/psalm:
src/Form/DataTransformer/CurrencyToArrayTransformer.php#L24
src/Form/DataTransformer/CurrencyToArrayTransformer.php:24:21: MismatchingDocblockParamType: Parameter $value has wrong type 'Money\Currency|null', should be 'Money\Currency' (see https://psalm.dev/141)
|
Run vendor/bin/psalm:
src/Form/DataTransformer/CurrencyToArrayTransformer.php#L26
src/Form/DataTransformer/CurrencyToArrayTransformer.php:26: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#L41
src/Form/DataTransformer/CurrencyToArrayTransformer.php:41:21: MismatchingDocblockParamType: Parameter $value has wrong type 'array<array-key, mixed>|null', should be 'array<array-key, mixed>' (see https://psalm.dev/141)
|
Run vendor/bin/psalm:
src/Form/DataTransformer/CurrencyToArrayTransformer.php#L43
src/Form/DataTransformer/CurrencyToArrayTransformer.php:43: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#L49
src/Form/DataTransformer/CurrencyToArrayTransformer.php:49: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