Skip to content

Commit 525abc7

Browse files
authored
Removed useless method call() from callable function. (#5029)
1 parent ad9e1c5 commit 525abc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
419419
$callback = function () {
420420
try {
421421
$this->eventDispatcher && $this->eventDispatcher->dispatch(new Event\BeforeHandle($this));
422-
call([$this, 'handle']);
422+
$this->handle();
423423
$this->eventDispatcher && $this->eventDispatcher->dispatch(new Event\AfterHandle($this));
424424
} catch (\Throwable $exception) {
425425
if (class_exists(ExitException::class) && $exception instanceof ExitException) {

0 commit comments

Comments
 (0)