Bug 479387 - Bad formatting when CA adds use function/const
Summary: Bad formatting when CA adds use function/const
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact: Sylvia Tancheva CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-09 03:34 EDT by Michal Niewrzal CLA
Modified: 2020-05-14 10:16 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 Michal Niewrzal CLA 2015-10-09 03:34:31 EDT
Create a PHP project.
Check out the following example:
<?php
namespace Test
{

    const BAR = 1;

    function myFunction($param)
    {}
}
namespace Foo
{
    use const Test\BAR;
    BAR;
    | // use CA for myFunction
}

Result:
<?php
namespace Test
{

    const BAR = 1;

    function myFunction($param)
    {}
}
namespace Foo
{
    use const Test\BAR;
use function Test\myFunction;
        BAR;
    myFunction($param) // use CA for myFunction
}