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] InputArgument and InputOption code cleanup #52054

Merged
merged 1 commit into from
Feb 3, 2024

Conversation

jnoordsij
Copy link
Contributor

@jnoordsij jnoordsij commented Oct 14, 2023

Q A
Branch? 7.1
Bug fix? no
New feature? no
Deprecations? no
Tickets n/a
License MIT

This updates the InputOption and InputArgument classes to be slightly more consistent. Moreover it adds some additional dockblocks that were not present yet.

Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

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

  • We can use int-mask-of<InputArgument::*> for the constructor $mode param.
  • The comment for InputArgument::complete should be improved to explain that it's called when the command resolves input completion for this argument, same for InputOption.

src/Symfony/Component/Console/Input/InputOption.php Outdated Show resolved Hide resolved
src/Symfony/Component/Console/Input/InputOption.php Outdated Show resolved Hide resolved
@OskarStark OskarStark changed the title [Console] InputArgument and InputOption code cleanup [Console] InputArgument and InputOption code cleanup Oct 17, 2023
@fabpot fabpot modified the milestones: 6.4, 7.1 Oct 18, 2023
@OskarStark OskarStark force-pushed the console-input-code-cleanup branch 3 times, most recently from 522f6d4 to 3c3c983 Compare December 29, 2023 22:11
@OskarStark
Copy link
Contributor

rebased, squashed, cs fixed ✅

@fabpot
Copy link
Member

fabpot commented Feb 3, 2024

Thank you @jnoordsij.

@fabpot fabpot merged commit 4d8c8bc into symfony:7.1 Feb 3, 2024
2 of 9 checks passed
@jnoordsij jnoordsij deleted the console-input-code-cleanup branch February 5, 2024 08:02
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