Skip to content

Commit 7cd3c11

Browse files
committed
Don't open browser on serve command by default
1 parent cdd4915 commit 7cd3c11

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Enh #226: Check empty string as key in command map in `CommandLoader` validation (@vjik)
77
- Bug #224: Fix typo in `UNAVAILABLE` exit code reason (@vjik)
88
- Bug #227: Throw `RuntimeException` in `ServeCommand` when it wasn't possible to find out the current directory (@vjik)
9+
- Bug #230: The `serve` command no longer opens the browser by default (@vjik)
910

1011
## 2.3.0 January 23, 2025
1112

src/Command/Serve.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function configure(): void
8080
$this->defaultWorkers
8181
)
8282
->addOption('env', 'e', InputOption::VALUE_OPTIONAL, 'It is only used for testing.')
83-
->addOption('open', 'o', InputOption::VALUE_OPTIONAL, 'Opens the serving server in the default browser.')
83+
->addOption('open', 'o', InputOption::VALUE_OPTIONAL, 'Opens the serving server in the default browser.', false)
8484
->addOption('xdebug', 'x', InputOption::VALUE_OPTIONAL, 'Enables XDEBUG session.', false);
8585
}
8686

0 commit comments

Comments
 (0)