Skip to content

Commit 889bb6b

Browse files
minor symfony#61338 [Form] use false instead of null to hide the currency symbol (xabbuh)
This PR was merged into the 6.4 branch. Discussion ---------- [Form] use `false` instead of `null` to hide the currency symbol | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT This slipped in with symfony#61296. Technically, there shouldn't be a difference but since we explicitly mention false in the documentation let's better be safe here. Commits ------- ecd674d use false instead of null to hide the currency symbol
2 parents 348aae1 + ecd674d commit 889bb6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/Tests/Extension/Core/Type/MoneyTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function testSubmitNull($expected = null, $norm = null, $view = null)
7676

7777
public function testMoneyPatternWithoutCurrency()
7878
{
79-
$view = $this->factory->create(static::TESTED_TYPE, null, ['currency' => null])
79+
$view = $this->factory->create(static::TESTED_TYPE, null, ['currency' => false])
8080
->createView();
8181

8282
$this->assertSame('{{ widget }}', $view->vars['money_pattern']);

0 commit comments

Comments
 (0)