Skip to content

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.

@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