From 997b3079bd6f272afe023f660f08a358514c5932 Mon Sep 17 00:00:00 2001 From: Timm Friebe Date: Thu, 28 Mar 2024 20:12:58 +0100 Subject: [PATCH] Use lang.reflection.Type::declaredName() --- src/main/php/xp/command/CmdRunner.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/php/xp/command/CmdRunner.class.php b/src/main/php/xp/command/CmdRunner.class.php index 3da97c6..4abba52 100755 --- a/src/main/php/xp/command/CmdRunner.class.php +++ b/src/main/php/xp/command/CmdRunner.class.php @@ -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)*';