You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Junichi Yamamoto (Jira)" <ji...@apache.org> on 2020/10/30 23:27:00 UTC

[jira] [Resolved] (NETBEANS-4970) Incorrect formatting for lambda functions

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

Junichi Yamamoto resolved NETBEANS-4970.
----------------------------------------
    Fix Version/s: 12.2
       Resolution: Fixed

Fixed.
https://github.com/apache/netbeans/pull/2502

> Incorrect formatting for lambda functions
> -----------------------------------------
>
>                 Key: NETBEANS-4970
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4970
>             Project: NetBeans
>          Issue Type: Bug
>          Components: php - Editor
>    Affects Versions: 12.2
>            Reporter: Junichi Yamamoto
>            Assignee: Junichi Yamamoto
>            Priority: Major
>             Fix For: 12.2
>
>
> Formatting is incorrect when a lambda function is used with a return statement.
> Example code:
> {code:php}
> <?php
> function test(): callable {
>     return function ($test): void {
>         echo "test";
>     };
> }
> {code}
> h3. Actual result:
> {code:php}
> <?php
> function test(): callable {
>     return function ($test): void {
>                 echo "test";
>             };
> }
> {code}
> h3. Expected result:
> {code:php}
> <?php
> function test(): callable {
>     return function ($test): void {
>         echo "test";
>     };
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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