CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #36309

roundtrip + wrap long lines leads to wrong php code

Added by Daniel Gercke about 1 year ago. Updated 4 months ago.

Status:Accepted Start date:2012-04-19
Priority:Won't have this time Due date:
Assignee:- % Done:

0%

Category:-
Target version:6.0
Votes: 0

Description

Using the roundtrip feature and have wrapped lines in function definition leads to wrong php code.
(wrapped max line lenght 120)

Using this code for example in ApartmentPriceController.php:

public function injectApartmentPriceRepository(
Tx_Wellness_Domain_Repository_ApartmentPriceRepository $apartmentPriceRepository
) {

will lead to this after round trip:

public function injectApartmentPriceRepository(Tx_Wellness_Domain_Repository_ApartmentPriceRepository $apartmentPriceRepository) {
Tx_Wellness_Domain_Repository_ApartmentPriceRepository $apartmentPriceRepository
) {

History

Updated by Nico de Haen about 1 year ago

  • Status changed from New to Accepted
  • Priority changed from Must have to Won't have this time

It's right, that this syntax is not supported yet, (but it should of course). Since I'm just implementing a complete new PHP parser library I won't fix this in the old parser. So you have to avoid this syntax so far, if you use the edit mode, or configure the overwrite settings for your controller file to "keep".

Updated by Nico de Haen 4 months ago

  • Target version set to 6.0

Also available in: Atom PDF