Skip to content

Commit

Permalink
Fix psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
mustanggb authored Feb 25, 2024
1 parent a88bb2e commit 321e51c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Form/DataTransformer/SimpleMoneyToArrayTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public function __construct(protected int $decimals)
/**
* {@inheritdoc}
*
* @psalm-param Money|null $value
*
* @psalm-return array{tbbc_amount: string}|null
*/
public function transform(mixed $value): ?array
Expand All @@ -36,6 +38,8 @@ public function transform(mixed $value): ?array

/**
* {@inheritdoc}
*
* @psalm-param array|null $value
*/
public function reverseTransform(mixed $value): ?Money
{
Expand Down

0 comments on commit 321e51c

Please sign in to comment.