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.
Created attachment 146573 [details] Image with formatting differences Since version 7.4 is not indented properly code inside the anonymous function, as shown in the attached picture. It did not help importing settings from version 7.3
Reproducible. Test case: <?php $foo = array( "foo" => function ($args) { echo ""; }, "foo" => function ($args) { echo ""; }, ); ?>
Properly it should be like this: <?php $foo = array( "foo" => function ($args) { echo ""; }, "foo" => function ($args) { echo ""; }, );
Fixed in web-main #7f3c457364ef
Integrated into 'main-silver', will be available in build *201407230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/7f3c457364ef User: Ondrej Brejla <obrejla@netbeans.org> Log: #243593 - Wrong formating of anonymous function
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 ""; }, ); ?>
Do not reopen fixed issues. File ne P3. Thanks.