8000 Command::addOption should allow int in $default by hultberg · Pull Request #29201 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Command::addOption should allow int in $default #29201

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

Merged
merged 1 commit into from
Nov 14, 2018

Conversation

hultberg
Copy link
Contributor
Q A
Branch? all
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets none
License MIT
Doc PR

In #28714 the documentation for $default on Command::addOption was changed to specify more specifically than mixed. However, there is an inconsistency as InputOption::__construct allows int in its $default, but not Command::addOption. This PR makes fixes that inconsistency.

@hultberg hultberg force-pushed the eh-console-allow-int-default branch 2 times, most recently from ea71997 to 84a41f3 Compare November 13, 2018 13:45
The constructor for InputOption allows int on the $default parameter, but not Command::addOption $default parameter

fixup: apply coding standards patch
@hultberg hultberg force-pushed the eh-console-allow-int-default branch from 84a41f3 to 5f8bd89 Compare November 13, 2018 14:21
@chalasr
Copy link
Member
chalasr commented Nov 14, 2018

Thank you @hultberg.

@chalasr chalasr merged commit 5f8bd89 into symfony:2.8 Nov 14, 2018
chalasr pushed a commit that referenced this pull request Nov 14, 2018
This PR was merged into the 2.8 branch.

Discussion
----------

Command::addOption should allow int in $default

| Q             | A
| ------------- | ---
| Branch?       | all
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | none
| License       | MIT
| Doc PR        |

<!--
Write a short README entry for your feature/bugfix here (replace this comment block.)
This will help people understand your PR and can be used as a start of the Doc PR.
Additionally:
 - Bug fixes must be submitted against the lowest branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too).
 - Features and deprecations must be submitted against the master branch.
-->

In #28714 the documentation for `$default` on `Command::addOption` was changed to specify more specifically than `mixed`. However, there is an inconsistency as `InputOption::__construct` allows int in its `$default`, but not `Command::addOption`. This PR makes fixes that inconsistency.

Commits
-------

5f8bd89 Command::addOption should allow int in $default
@hultberg hultberg deleted the eh-console-allow-int-default branch November 14, 2018 14:31
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.

5 participants
0