[ 
https://issues.apache.org/jira/browse/NETBEANS-3103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Junichi Yamamoto updated NETBEANS-3103:
---------------------------------------
    Description: 
h2. Example code
{code:php}
<?php
class ClassName {

     // ^ is the caret position
    // select "self::" or "parent::" in CC list
    private const CONSTANT = ^;

}
{code}
h2. Expected result
{code:php}
<?php
class ClassName {

    private const CONSTANT = self::;

}
{code}
h2. Actual result
{code:php}
<?php
class ClassName {

    private const CONSTANT = self

    ::;

}
{code}

  was:
h2. Example code
{code:php}
<?php
class ClassName {

     // ^ is the caret position
    // select "self::" in CC list
    private const CONSTANT = ^;

}
{code}
h2. Expected result
{code:php}
<?php
class ClassName {

    private const CONSTANT = self::;

}
{code}
h2. Actual result
{code:php}
<?php
class ClassName {

    private const CONSTANT = self

    ::;

}
{code}


> Formatting is broken with class constant code completion(self::)
> ----------------------------------------------------------------
>
>                 Key: NETBEANS-3103
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3103
>             Project: NetBeans
>          Issue Type: Bug
>          Components: php - Editor, php - Formatting &amp; Indentation
>    Affects Versions: 11.2
>            Reporter: Junichi Yamamoto
>            Assignee: Junichi Yamamoto
>            Priority: Major
>
> h2. Example code
> {code:php}
> <?php
> class ClassName {
>      // ^ is the caret position
>     // select "self::" or "parent::" in CC list
>     private const CONSTANT = ^;
> }
> {code}
> h2. Expected result
> {code:php}
> <?php
> class ClassName {
>     private const CONSTANT = self::;
> }
> {code}
> h2. Actual result
> {code:php}
> <?php
> class ClassName {
>     private const CONSTANT = self
>     ::;
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to