Skip to content

Fix wrong boolean values #61296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 6.4
Choose a base branch
from

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 6.4
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

The subset of #61203 that's obviously mistakes

@@ -2141,7 +2141,7 @@ public function testMoney()
public function testMoneyWithoutCurrency()
{
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\MoneyType', 1234.56, [
'currency' => false,
'currency' => null,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing false is actually what is documented as the way to suppress showing the currency symbol:

You can also set this to false to hide the currency symbol.

see https://symfony.com/doc/current/reference/forms/types/money.html#currency

@@ -1386,7 +1385,6 @@ public function testNormalizerCanAccessLazyOptions()
$this->resolver->setDefault('norm', 'baz');

$this->resolver->setNormalizer('norm', function (Options $options) {
/** @var TestCase $test */
Assert::assertEquals('bar', $options['lazy']);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Assert::assertEquals('bar', $options['lazy']);
Assert::assertSame('bar', $options['lazy']);

?

Comment on lines +2418 to +2420
$this->assertTrue($this->resolver->isDefined('foo'));
$this->assertTrue($this->resolver->isDeprecated('foo'));
$this->assertTrue($this->resolver->hasDefault('foo'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
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