File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/Symfony/Component/Console Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -491,7 +491,7 @@ public function setHelp($help)
491491 */
492492 public function getHelp ()
493493 {
494- return $ this ->help ?: $ this -> description ;
494+ return $ this ->help ;
495495 }
496496
497497 /**
@@ -513,7 +513,7 @@ public function getProcessedHelp()
513513 $ _SERVER ['PHP_SELF ' ].' ' .$ name ,
514514 );
515515
516- return str_replace ($ placeholders , $ replacements , $ this ->getHelp ());
516+ return str_replace ($ placeholders , $ replacements , $ this ->getHelp () ? $ this -> getHelp () : $ this -> getDescription () );
517517 }
518518
519519 /**
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ public function testGetSetHelp()
132132 $ this ->assertEquals ($ command , $ ret , '->setHelp() implements a fluent interface ' );
133133 $ this ->assertEquals ('help1 ' , $ command ->getHelp (), '->setHelp() sets the help ' );
134134 $ command ->setHelp ('' );
135- $ this ->assertEquals ('description ' , $ command ->getHelp (), '->getHelp() fallback to the description ' );
135+ $ this ->assertEquals ('' , $ command ->getHelp (), '->getHelp() does not fall back to the description ' );
136136 }
137137
138138 public function testGetProcessedHelp ()
You can’t perform that action at this time.
0 commit comments