Skip to content

Commit b9fd07a

Browse files
Upgrade the versions of phpstan and rector.
Co-authored-by: 李铭昕 <715557344@qq.com>
1 parent fd432f5 commit b9fd07a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Command.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
174174
$callback = function () use ($method): int {
175175
try {
176176
$this->eventDispatcher?->dispatch(new Event\BeforeHandle($this));
177-
$statusCode = $this->{$method}();
177+
/** @var callable $callable */
178+
$callable = [$this, $method];
179+
$statusCode = $callable();
178180
if (is_int($statusCode)) {
179181
$this->exitCode = $statusCode;
180182
}

0 commit comments

Comments
 (0)