-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#36: Fix --clone option default value
The InputOption::VALUE_OPTIONAL option mode will always return null if you don't set a default value, but returning any other value makes it impossible to correctly determine whether the flag was set or not. Solution is to rely on $input->hasParameterOption() instead. See: https://github.com/symfony/symfony/issues/11572\#issuecomment-197929086
- Loading branch information
Steven Rombauts
committed
Dec 12, 2017
1 parent
ad41c45
commit acbf9fa
Showing
2 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters