Skip to content

Commit 0f93da8

Browse files
committed
🐛 fix quitServer() method
Signed-off-by: otengkwame <[email protected]>
1 parent 9bb03c0 commit 0f93da8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Core/core/Console/Console.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,8 +984,12 @@ public static function quitServer(array $args = [], int $ttq = 10): void
984984
$count = $ttq;
985985
$port = static::DEFAULT_PORT;
986986

987-
if (isset($args[3]) && $args[3] === '--port') {
988-
$port = (int)$args[2];
987+
if (isset($args[2]) && $args[2] === '--port') {
988+
$port = (int)$args[3];
989+
}
990+
991+
if (isset($args[2]) && ($args[2] === '--in' || $args[2] === 'in')) {
992+
$count = (int)$args[3];
989993
}
990994

991995
if (isset($args[4]) && ($args[4] === '--in' || $args[4] === 'in')) {

0 commit comments

Comments
 (0)