Skip to content

Commit 0e8ff78

Browse files
committed
fix(core): fixing an issue where the optional --dev flag would be mapped to --environment and cause dev mode to hang.
1 parent 1f3530c commit 0e8ff78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/Core/Commands/ApplicationCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function run(CommandContext $context):Result {
3434
$libraries = explode(',', $context->get('libraries')?:'');
3535
$resources = explode(',', $context->get('resources')?:'');
3636
$environment = $context->get('environment')?:'';
37-
$wait = $context->get('environment')?:'';
37+
$wait = $context->get('wait')?:'';
3838

3939
if ($main) {
4040
$main = realpath($main);
@@ -80,7 +80,7 @@ public function run(CommandContext $context):Result {
8080
return true;
8181
});
8282
Bootstrap::spawn(
83-
spawner: $spawner?:'/usr/bin/php',
83+
spawner: '/usr/bin/php',
8484
fileName: $this->startFileName,
8585
arguments: $arguments,
8686
);
@@ -91,7 +91,7 @@ public function run(CommandContext $context):Result {
9191
libraries: $libraries,
9292
resources: $resources,
9393
environment: $environment,
94-
wait: $wait,
94+
wait: (bool)$wait,
9595
);
9696
}
9797
return ok();

0 commit comments

Comments
 (0)