8000 minor #10184 [Console] $default can be string (Jmoati) · symfony/symfony@d22a1ee · GitHub
[go: up one dir, main page]

Skip to content
< 8000 script crossorigin="anonymous" type="application/javascript" src="https://github.githubassets.com/assets/sessions-d044b7c46be3.js" defer="defer">

Commit d22a1ee

Browse files
committed
minor #10184 [Console] $default can be string (Jmoati)
This PR was submitted for the 2.3-dev branch but it was merged into the 2.3 branch instead (closes #10184). Discussion ---------- [Console] $default can be string Bug fix: no Feature addition: no Backwar 8000 ds compatibility break: no Symfony2 tests pass: yes License of the code: MIT Commits ------- 39ab7f3 [Console] $default can be string
2 parents 6e5576b + 7e389fe commit d22a1ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Helper/DialogHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class DialogHelper extends Helper
3131
* @param OutputInterface $output An Output instance
3232
* @param string|array $question The question to ask
3333
* @param array $choices List of choices to pick from
34-
* @param Boolean $default The default answer if the user enters nothing
34+
* @param Boolean|string $default The default answer if the user enters nothing
3535
* @param Boolean|integer $attempts Max number of times to ask before giving up (false by default, which means infinite)
3636
* @param string $errorMessage Message which will be shown if invalid value from choice list would be picked
3737
* @param Boolean $multiselect Select more than one value separated by comma

0 commit comments

Comments
 (0)
0