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 160114 [details] Before / After Format Using Netbeans for PHP, I ran into a specific condition where the IDE formating goes wrong. The specific condition is shown in the attachement : with a nameless array in the return of the closure, indentations of all lines after this until the end of the file get two extra tabs. Each time this structure appears, it adds two more tabs starting after the return until the end. In this example, I have this situation multiple times in my file, and the end get 16 extra tabs, forcing a manual indentation here. I found a particularity to reproduce this bug, the nameless array in the return is important : - return $q->where(['photo IS NOT' => '']); -> bug - return []; -> bug - return array(); -> bug - return $q->where($array['photo IS NOT' => '']); -> bug - return $array[]; -> no bug
Could you please attach a sample file? Thanks.
Looks like duplicate of https://netbeans.org/bugzilla/show_bug.cgi?id=247047