This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
From: https://netbeans.org/bugzilla/show_bug.cgi?id=243593#c5 This change completely broke formatting, when anonymous function has array inside. Correct formatting: <?php $foo = array( "foo" => function ($args) { print_r(array(1, 2, 3)); }, "foo" => function ($args) { echo ""; }, ); ?> Current result: <?php $foo = array( "foo" => function ($args) { print_r(array(1, 2, 3)); }, "foo" => function ($args) { echo ""; }, ); ?>
Reproducible, thanks.
*** Bug 254162 has been marked as a duplicate of this bug. ***
*** Bug 251403 has been marked as a duplicate of this bug. ***
*** Bug 257023 has been marked as a duplicate of this bug. ***
Created attachment 159080 [details] patch
I've created a patch. Tomas, Could you please review it when you can make time? Thanks.
Thanks a lot for the patch, will apply it soon.
Patch applied, thanks a lot for it Junichi! Great job as always! http://hg.netbeans.org/web-main/rev/8e60cd9b56ba
Integrated into 'main-silver', will be available in build *201604020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/8e60cd9b56ba User: Tomas Mysik <tmysik@netbeans.org> Log: #247047 - Wrong formating of anonymous function in array Patch contributed by junichi11@netbeans.org.