Skip to content

[Console][Testing] Correct what appears to be intended behavior vs actual behavior in do… #17559

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

Closed
wants to merge 3 commits into from

Conversation

tomegantcs
Copy link
Contributor

…cumentation

When testing a command with an InputOption::VALUE_NONE option, and symfony/console v5.4.15 I have to provide a non-empty value to set the flag to the 'on' value. Perhaps this is changed in a later version?

…cumentation

When testing a command with an `InputOption::VALUE_NONE` option, and symfony/console v5.4.15 I have to provide a non-empty value to set the flag to the 'on' value. Perhaps this is changed in a later version?
Copy link
Member

@wouterj wouterj left a comment

Choose a reason for hiding this comment

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

Looking at some of Symfony's own tests, I think you're correct. However, Symfony's own tests always use true (the boolean), so let's stick with that in the documentation as well.

tomegantcs and others added 2 commits February 20, 2024 07:55
Co-authored-by: Wouter de Jong <wouterj@users.noreply.github.com>
@javiereguiluz javiereguiluz added this to the 6.4 milestone Feb 20, 2024
@carsonbot carsonbot changed the title Correct what appears to be intended behavior vs actual behavior in do… [Console][Testing] Correct what appears to be intended behavior vs actual behavior in do… Feb 20, 2024
@javiereguiluz
Copy link
Member

Good catch Tom! Thanks and congrats on your first (and nice) Symfony Docs contribution 🎉

Note: I'm closing this PR in favor of #19580, which contains the same commits but fixes the merge conflicts. Thanks.

javiereguiluz added a commit that referenced this pull request Feb 20, 2024
…ehavior vs actual behavior in documentation (tomegantcs)

This PR was squashed before being merged into the 6.4 branch.

Discussion
----------

[Console][Testing] Correct what appears to be intended behavior vs actual behavior in documentation

This continues #17559 because the original PR had some conflicts that I cannot fix while merging.

I cherry-picked the original commits, so the contribution will go to the original author.

Thanks!

Commits
-------

2d2a1ce [Console][Testing] Correct what appears to be intended behavior vs actual behavior in documentation
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