Skip to content

Commit cfcf3f4

Browse files
committed
fix(console): respect default value in confirm when forced
1 parent a1679a1 commit cfcf3f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/console/src/GenericConsole.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public function ask(
262262
public function confirm(string $question, bool $default = false, ?string $yes = null, ?string $no = null): bool
263263
{
264264
if ($this->isForced) {
265-
return true;
265+
return $default;
266266
}
267267

268268
return $this->component(new ConfirmComponent($question, $default, $yes, $no));

0 commit comments

Comments
 (0)