From 6657b20f9dbf7dbe4b6a26ef9fd25b83be0be0fa Mon Sep 17 00:00:00 2001 From: MustangGB Date: Sun, 25 Feb 2024 17:10:59 +0000 Subject: [PATCH] Fix psalm --- src/Form/DataTransformer/MoneyToArrayTransformer.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 {