Skip to content

Commit 889bb6b

Browse files
minor #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 #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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy