Skip to content
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

[Console] Fix negated options not accessible #41535

Merged
merged 1 commit into from Jun 4, 2021

Conversation

jderusse
Copy link
Member

@jderusse jderusse commented Jun 3, 2021

Q A
Branch? 5.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #41531
License MIT
Doc PR -

Removing the --no-ansi option to only let the negatable option --ansi breaks applications that expects calling $input->getOption('no-ansi')

This PR provides a fallback to return the negative value of the negatable options

Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍 Thanks

src/Symfony/Component/Console/Input/Input.php Outdated Show resolved Hide resolved
@chalasr
Copy link
Member

chalasr commented Jun 4, 2021

Thank you Jérémy.

@dereuromark
Copy link

I see a release for symfony/symfony 5.3.1 that seems to include the fix, but https://packagist.org/packages/symfony/console shows no such split package for console.
We do need it to resolve our BC breaking issues, though. Is that stilled planned or did the release go wrong?
Thank you.

@jderusse jderusse deleted the fix-negate branch June 8, 2021 09:24
@fabpot fabpot mentioned this pull request Jun 17, 2021
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.

None yet

5 participants