Skip to content

Commit 320d547

Browse files
committed
Fix detach console logic
1 parent 4b02c5f commit 320d547

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Api/Console/ConsoleExtensionProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function load(IdentifiableInterface $ctx, EventListener $listener): null
3131
// Detach console in case of:
3232
// 1) Debug mode is disabled
3333
// 2) And application running in PHAR
34-
if ($driver !== null && $ctx->isDebug && $this->isRunningInPhar()) {
34+
if ($driver !== null && !$ctx->isDebug && $this->isRunningInPhar()) {
3535
$listener->dispatch($intention = new ConsoleDetaching($ctx, $driver));
3636

3737
if ($intention->isCancelled) {

0 commit comments

Comments
 (0)