Skip to content

Commit

Permalink
Use lang.reflection.Type::declaredName()
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Mar 28, 2024
1 parent b6fe15d commit 997b307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/xp/command/CmdRunner.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ protected function listCommands() {
$markdown= '';
foreach ($package->types() as $type) {
if ($type->is(Command::class) && $type->instantiable()) {
$markdown.= ' $ xp cmd '.substr($type->name(), strlen($package->name()) + 1)."\n";
$markdown.= ' $ xp cmd '.$type->declaredName()."\n";
}
}
return $markdown ?: ' *(no commands)*';
Expand Down

0 comments on commit 997b307

Please sign in to comment.