Bug 558935 - Code formatter creates unnecessary TextEdits for variadic parameters and for constant declarations with modifiers
Summary: Code formatter creates unnecessary TextEdits for variadic parameters and for ...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Thierry BLIND CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-08 12:43 EST by Thierry BLIND CLA
Modified: 2020-05-14 13:24 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry BLIND CLA 2020-01-08 12:43:58 EST
Hi,
step to reproduce:
1. create following php file:
<?php
class A
{
    private const A = 'xxx';

    public function foo(...$param)
    {
    }
}

2. save the file and format it.
3. now each time you try to format the file (and save it), the file will be marked as changed, even if the content didn't change at all.

Let's fix that.

Thierry.
Comment 1 Eclipse Genie CLA 2020-01-08 12:48:10 EST
New Gerrit change created: https://git.eclipse.org/r/155506
Comment 3 Thierry BLIND CLA 2020-01-09 04:33:40 EST
Fixed.