diff --git a/src/Form/DataTransformer/MoneyToArrayTransformer.php b/src/Form/DataTransformer/MoneyToArrayTransformer.php index 2e472ca0..0037f563 100644 --- a/src/Form/DataTransformer/MoneyToArrayTransformer.php +++ b/src/Form/DataTransformer/MoneyToArrayTransformer.php @@ -13,6 +13,8 @@ /** * Transforms between a Money and an array. + * + * @implements DataTransformerInterface */ class MoneyToArrayTransformer implements DataTransformerInterface { @@ -26,7 +28,7 @@ public function __construct(protected int $decimals = 2) /** * {@inheritdoc} * - * @psalm-param mixed $value + * @psalm-param Money|null $value * * @psalm-return array{tbbc_amount: string, tbbc_currency: Currency}|array{tbbc_amount: string}|null */ @@ -51,7 +53,7 @@ public function transform(mixed $value): ?array /** * {@inheritdoc} * - * @psalm-param mixed $value + * @psalm-param array|null $value */ public function reverseTransform(mixed $value): ?Money {