Project

General

Profile

Actions

Bug #59324

closed

CLI command drops last line of method description

Added by Mathias Brodala over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
Start date:
2014-06-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

The CLI command drops the last line of method descriptions. Thus given the following doc comment:

/**
 * My method
 *
 * My longer description for this method:
 * it can span multiple lines.
 *
 * @param string $argument
 * @return void
 */

The description ends up like this:

My method

My longer description for this method:

The actual wanted description is this:

My longer description for this method:

it can span multiple lines.

The issue seems to be an error while porting the Mvc\Cli\Command::getDescription method from TYPO3 Flow. While TYPO3 Flow uses array_shift to drop the first line of the description (as stated with ... except for the first line ...), Extbase uses array_pop which obviously removes the last line instead.

The fix is replacing array_pop with array_shift.

The bug can be seen in action easily by executing ./typo3/cli_dispatch.phpsh help help.

Actions #1

Updated by Markus Klein over 10 years ago

  • Project changed from 534 to TYPO3 Core
  • Category deleted (Extbase: Command)
Actions #2

Updated by Markus Klein over 10 years ago

  • Category set to Extbase
  • Status changed from New to Accepted
  • Is Regression set to No
  • TYPO3 Version set to 6.2
Actions #3

Updated by Mathias Brodala over 10 years ago

Am I understanding correctly that project "Extbase MVC Framework" only was used when Extbase was still a separate repository?

Actions #4

Updated by Gerrit Code Review over 10 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30612

Actions #5

Updated by Gerrit Code Review over 10 years ago

Patch set 1 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30613

Actions #6

Updated by Gerrit Code Review over 10 years ago

Patch set 2 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30613

Actions #7

Updated by Mathias Brodala over 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF