From b957c6e6417ebf57ebc845d54f301cb69b448831 Mon Sep 17 00:00:00 2001 From: MustangGB Date: Sun, 25 Feb 2024 15:20:53 +0000 Subject: [PATCH] Fix psalm --- src/Type/MoneyType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Type/MoneyType.php b/src/Type/MoneyType.php index af09a934..bc420738 100644 --- a/src/Type/MoneyType.php +++ b/src/Type/MoneyType.php @@ -44,7 +44,7 @@ public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?Mo return null; } - return new Money((int) $amount, new Currency($currency)); + return new Money((int) $money[1], new Currency($money[0])); } public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): ?string