[
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: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists