Skip to content

Commit 4734afc

Browse files
authored
Fixed the lost description when using property $description and $signature for hyperf/command. (#4835)
1 parent 7385f94 commit 4734afc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Command.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,10 @@ public function __construct(string $name = null)
9393
$this->configureUsingFluentDefinition();
9494
} else {
9595
parent::__construct($this->name);
96-
! empty($this->description) && $this->setDescription($this->description);
9796
}
9897

98+
! empty($this->description) && $this->setDescription($this->description);
99+
99100
$this->addDisableDispatcherOption();
100101
}
101102

0 commit comments

Comments
 (0)