Skip to content

Commit ccee999

Browse files
committed
update
1 parent 2572653 commit ccee999

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Base/AbstractApplication.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,11 +681,16 @@ public function setCommandMessages(array $commandMessages)
681681
}
682682

683683
/**
684+
* @param null|string $name
684685
* @return array
685686
*/
686-
public function getCommandAliases(): array
687+
public function getCommandAliases($name = null): array
687688
{
688-
return $this->commandAliases;
689+
if (!$name) {
690+
return $this->commandAliases;
691+
}
692+
693+
return array_keys($this->commandAliases, $name, true);
689694
}
690695

691696
/**

0 commit comments

Comments
 (0)