10000 [Console] SymfonyStyle - add string type to confirm() $question by co… · symfony/symfony@d0c337d · GitHub
[go: up one dir, main page]

Skip to content

Commit d0c337d

Browse files
authored
[Console] SymfonyStyle - add string type to confirm() $question by contract
1 parent ce2300a commit d0c337d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Style/SymfonyStyle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public function askHidden(string $question, callable $validator = null)
288288
/**
289289
* {@inheritdoc}
290290
*/
291-
public function confirm($question, $default = true)
291+
public function confirm(string $question, bool $default = true)
292292
{
293293
return $this->askQuestion(new ConfirmationQuestion($question, $default));
294294
}

0 commit comments

Comments
 (0)
0