From cb20d9c6cadcb33999bf4f3c47191abd5d02b956 Mon Sep 17 00:00:00 2001 From: MustangGB Date: Sun, 25 Feb 2024 17:10:01 +0000 Subject: [PATCH] Fix psalm --- src/Form/DataTransformer/CurrencyToArrayTransformer.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Form/DataTransformer/CurrencyToArrayTransformer.php b/src/Form/DataTransformer/CurrencyToArrayTransformer.php index a5481c71..01b806a8 100644 --- a/src/Form/DataTransformer/CurrencyToArrayTransformer.php +++ b/src/Form/DataTransformer/CurrencyToArrayTransformer.php @@ -46,10 +46,6 @@ public function reverseTransform(mixed $value): ?Currency return null; } - if (!is_array($value)) { - throw new UnexpectedTypeException($value, 'array'); - } - if (!isset($value['tbbc_name'])) { return null; }