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.

Bug 257023 - Wrong alignment when anonymous function returns array (or has array)
Summary: Wrong alignment when anonymous function returns array (or has array)
Status: RESOLVED DUPLICATE of bug 247047
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-07 15:19 UTC by antoniocs
Modified: 2016-03-30 14:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Picture that shows wrong alignment on left and correct alignment on right (89.41 KB, image/png)
2015-12-07 15:19 UTC, antoniocs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description antoniocs 2015-12-07 15:19:05 UTC
Created attachment 157700 [details]
Picture that shows wrong alignment on left and correct alignment on right

I am working with some php code that has an anonymous function inside an associative array.

I have attached a picture that demonstrates how the code is being aligned by netbeans with and without the array.

There seems to be some sort of issue with the [] (and also with array()).
I also tried creating a variable and assigning the value of the array and returning that, but the result was the same.
Comment 1 junichi11 2016-03-30 14:08:38 UTC

*** This bug has been marked as a duplicate of bug 247047 ***