We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6b6941 commit 2cb8d9bCopy full SHA for 2cb8d9b
1 file changed
src/AsCommand.php
@@ -39,10 +39,8 @@ public function handle()
39
$instance = $this->container->get($this->class);
40
41
if (in_array(InteractsWithIO::class, class_uses_recursive($this->class))) {
42
- (function ($input, $output) {
43
- $this->input = $input;
44
- $this->output = $output;
45
- })->call($instance, $this->input, $this->output);
+ $instance->setInput($this->input);
+ $instance->setOutput($this->output);
46
}
47
48
return (fn ($method) => $this->{$method}(...$parameters))->call($instance, $this->method);
0 commit comments