Skip to content
Snippets Groups Projects
Commit 40219c6d authored by Mathias Brodala's avatar Mathias Brodala Committed by Anja Leichsenring
Browse files

[BUGFIX] Fix command description

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
parent b9cb4518
No related merge requests found
......@@ -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);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment