Skip to content

Commit

Permalink
Fix for php7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Dec 6, 2023
1 parent 942f420 commit 035cbf9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ public function installCommands($path, $namspace = 'app\command')
if ($reflection->isAbstract()) {
continue;
}
$name = $reflection->getStaticPropertyValue('defaultName');
$description = $reflection->getStaticPropertyValue('defaultDescription');
$properties = $reflection->getStaticProperties();
$name = $properties['defaultName'];
$description = $properties['defaultDescription'];
$command = Container::get($class_name);
$command->setName($name)->setDescription($description);
$this->add($command);
Expand Down

0 comments on commit 035cbf9

Please sign in to comment.