[BUGFIX] Fix command description 12/30612/2
authorMathias Brodala <mbrodala@pagemachine.de>
Fri, 6 Jun 2014 17:49:14 +0000 (19:49 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 6 Jun 2014 18:05:47 +0000 (20:05 +0200)
Due to using array_pop instead of array_shift the last line
of the command description is dropped instead of the first.

Use array_shift instead to get the full description
annotated for the command method.

Resolves: #59324
Releases: 6.2, 6.1, 4.7
Change-Id: I4d7c320b0ef334adbd15997d15d8e7a56d5739c1
Reviewed-on: https://review.typo3.org/30612
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/extbase/Classes/Mvc/Cli/Command.php

index 90f14fa..96657cd 100644 (file)
@@ -151,7 +151,7 @@ class Command {
         */
        public function getDescription() {
                $lines = explode(chr(10), $this->getCommandMethodReflection()->getDescription());
-               array_pop($lines);
+               array_shift($lines);
                $descriptionLines = array();
                foreach ($lines as $line) {
                        $trimmedLine = trim($line);