From 5da0b075d30cd6a5a56ef522fedf0ac2ae604874 Mon Sep 17 00:00:00 2001 From: Peter Elmered Date: Mon, 22 Apr 2024 23:49:11 +0200 Subject: [PATCH] Return null instead of empty string when value is not set(=null) --- src/Forms/Components/MoneyInput.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forms/Components/MoneyInput.php b/src/Forms/Components/MoneyInput.php index 5a4b055..af9242a 100644 --- a/src/Forms/Components/MoneyInput.php +++ b/src/Forms/Components/MoneyInput.php @@ -26,7 +26,7 @@ protected function setUp(): void $locale = $component->getLocale(); if (is_null($state)) { - return ''; + return null; } if (!is_numeric($state)) { return $state;