Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Dec 18, 2017
1 parent 2572653 commit ccee999
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Base/AbstractApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -681,11 +681,16 @@ public function setCommandMessages(array $commandMessages)
}

/**
* @param null|string $name
* @return array
*/
public function getCommandAliases(): array
public function getCommandAliases($name = null): array
{
return $this->commandAliases;
if (!$name) {
return $this->commandAliases;
}

return array_keys($this->commandAliases, $name, true);
}

/**
Expand Down

0 comments on commit ccee999

Please sign in to comment.