From 6f528bac60416d456351462cb3d040f43bda1569 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sat, 12 May 2012 23:24:49 -0400 Subject: [PATCH] ... --- framework/console/commands/HelpController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/console/commands/HelpController.php b/framework/console/commands/HelpController.php index 3fd99d0bb3..0b1dd0783b 100644 --- a/framework/console/commands/HelpController.php +++ b/framework/console/commands/HelpController.php @@ -44,7 +44,7 @@ class HelpController extends Controller * ~~~ * * @param array $args additional anonymous command line arguments. - * You may provide a command-name to display its detailed information. + * You may provide a command name to display its detailed information. * @return integer the exit status */ public function actionIndex($args = array()) @@ -315,7 +315,7 @@ class HelpController extends Controller { $options = array(); foreach ($class->getProperties() as $property) { - if (!$property->isPublic() || $property->isStatic() || $property->getDeclaringClass()->getName() !== get_class($controller)) { + if (!$property->isPublic() || $property->isStatic() || $property->getDeclaringClass()->getName() === 'yii\base\Controller') { continue; } $name = $property->getName();