Skip to content

Fix psalm errors

Fix psalm errors #118

Triggered via pull request February 25, 2024 17:05
Status Failure
Total duration 1m 3s
Artifacts

code_checks.yaml

on: pull_request
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

15 errors
UndefinedDocblockClass: src/Form/DataTransformer/CurrencyToArrayTransformer.php#L24
src/Form/DataTransformer/CurrencyToArrayTransformer.php:24:21: UndefinedDocblockClass: Docblock-defined class, interface or enum named Tbbc\MoneyBundle\Form\DataTransformer\TValue does not exist (see https://psalm.dev/200)
MismatchingDocblockParamType: src/Form/DataTransformer/CurrencyToArrayTransformer.php#L24
src/Form/DataTransformer/CurrencyToArrayTransformer.php:24:21: MismatchingDocblockParamType: Parameter $value has wrong type 'Tbbc\MoneyBundle\Form\DataTransformer\TValue|null', should be 'Money\Currency|null' (see https://psalm.dev/141)
MethodSignatureMismatch: src/Form/DataTransformer/CurrencyToArrayTransformer.php#L26
src/Form/DataTransformer/CurrencyToArrayTransformer.php:26:41: MethodSignatureMismatch: Argument 1 of Tbbc\MoneyBundle\Form\DataTransformer\CurrencyToArrayTransformer::transform has wrong type 'Money\Currency|null', expecting 'mixed' as defined by Symfony\Component\Form\DataTransformerInterface::transform (see https://psalm.dev/042)
ImplementedParamTypeMismatch: src/Form/DataTransformer/CurrencyToArrayTransformer.php#L26
src/Form/DataTransformer/CurrencyToArrayTransformer.php:26:41: ImplementedParamTypeMismatch: Argument 1 of Tbbc\MoneyBundle\Form\DataTransformer\CurrencyToArrayTransformer::transform has wrong type 'Tbbc\MoneyBundle\Form\DataTransformer\TValue|null', expecting 'Money\Currency|null' as defined by Symfony\Component\Form\DataTransformerInterface::transform (see https://psalm.dev/199)
MixedInferredReturnType: src/Form/DataTransformer/CurrencyToArrayTransformer.php#L26
src/Form/DataTransformer/CurrencyToArrayTransformer.php:26:50: 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#L41
src/Form/DataTransformer/CurrencyToArrayTransformer.php:41:21: UndefinedDocblockClass: Docblock-defined class, interface or enum named Tbbc\MoneyBundle\Form\DataTransformer\TTransformedValue does not exist (see https://psalm.dev/200)
MismatchingDocblockParamType: src/Form/DataTransformer/CurrencyToArrayTransformer.php#L41
src/Form/DataTransformer/CurrencyToArrayTransformer.php:41:21: MismatchingDocblockParamType: Parameter $value has wrong type 'Tbbc\MoneyBundle\Form\DataTransformer\TTransformedValue|null', should be 'array<array-key, mixed>' (see https://psalm.dev/141)
MethodSignatureMismatch: 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)
ImplementedParamTypeMismatch: src/Form/DataTransformer/CurrencyToArrayTransformer.php#L43
src/Form/DataTransformer/CurrencyToArrayTransformer.php:43:44: ImplementedParamTypeMismatch: Argument 1 of Tbbc\MoneyBundle\Form\DataTransformer\CurrencyToArrayTransformer::reverseTransform has wrong type 'Tbbc\MoneyBundle\Form\DataTransformer\TTransformedValue|null', expecting 'array<array-key, mixed>|null' as defined by Symfony\Component\Form\DataTransformerInterface::reverseTransform (see https://psalm.dev/199)
MixedInferredReturnType: src/Form/DataTransformer/CurrencyToArrayTransformer.php#L43
src/Form/DataTransformer/CurrencyToArrayTransformer.php:43:53: MixedInferredReturnType: Could not verify return type 'Money\Currency|null' for Tbbc\MoneyBundle\Form\DataTransformer\CurrencyToArrayTransformer::reverseTransform (see https://psalm.dev/047)
PHP 8.3 - 7.0.* - prefer-stable
Process completed with exit code 255.
PHP 8.2 - 7.0.* - prefer-stable
Process completed with exit code 255.
PHP 8.1 - 5.4.* - prefer-stable
Process completed with exit code 255.
PHP 8.1 - 6.4.* - prefer-stable
Process completed with exit code 255.
PHP 8.1 - 5.4.* - prefer-lowest
Process completed with exit code 255.