Skip to content

Commit b1ca858

Browse files
xuanyanwowhzh
andauthored
Cancel AsCommand and ClosureCommand return values (#6803)
Co-authored-by: hzh <hzh@addcn.com>
1 parent dce46ba commit b1ca858

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/AsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ public function handle()
6363
$instance->setOutput($this->output);
6464
}
6565

66-
return (fn ($method) => $this->{$method}(...$parameters))->call($instance, $this->method);
66+
(fn ($method) => $this->{$method}(...$parameters))->call($instance, $this->method);
6767
}
6868
}

src/ClosureCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function handle()
5858
$inputs = array_merge($this->input->getArguments(), $this->input->getOptions());
5959
$parameters = $this->parameterParser->parseClosureParameters($this->closure, $inputs);
6060

61-
return $this->closure->call($this, ...$parameters);
61+
$this->closure->call($this, ...$parameters);
6262
}
6363

6464
public function describe(string $description): self

0 commit comments

Comments
 (0)