Skip to content

Commit

Permalink
Return null instead of empty string when value is not set(=null)
Browse files Browse the repository at this point in the history
  • Loading branch information
pelmered committed Apr 22, 2024
1 parent 77ee5f7 commit 5da0b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/Components/MoneyInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function setUp(): void
$locale = $component->getLocale();

if (is_null($state)) {
return '';
return null;
}
if (!is_numeric($state)) {
return $state;
Expand Down

0 comments on commit 5da0b07

Please sign in to comment.