Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c7c250

Browse files
Merge branch '6.4' into 7.4
* 6.4: More CS fixes
2 parents d9a32b4 + 7bbcaf3 commit 1c7c250

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Command/TraceableCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ public function __construct(
6363
parent::__construct($command->getName());
6464

6565
// init below enables calling {@see parent::run()}
66-
[$code, $processTitle, $ignoreValidationErrors] = \Closure::bind(function () {
67-
return [$this->code, $this->processTitle, $this->ignoreValidationErrors];
68-
}, $command, Command::class)();
66+
[$code, $processTitle, $ignoreValidationErrors] = \Closure::bind(fn () => [$this->code, $this->processTitle, $this->ignoreValidationErrors], $command, Command::class)();
6967

7068
if (\is_callable($code)) {
7169
$this->setCode($code);

0 commit comments

Comments
 (0)