We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15a0a9b commit 8482a69Copy full SHA for 8482a69
src/Commands/MakeCommand.php
@@ -23,8 +23,15 @@ public function boot(): void
23
24
public function whenStopping()
25
{
26
- $this->input->write(Key::CTRL_C);
27
28
+ $this->potentiallyExitOpenPrompts();
29
+ }
30
+
31
+ protected function potentiallyExitOpenPrompts()
32
+ {
33
+ if (!$this->input->isClosed()) {
34
+ $this->input->write(Key::CTRL_C);
35
36
}
37
0 commit comments