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.
Summary: | Improper indentation in anonymous functions | ||
---|---|---|---|
Product: | php | Reporter: | antoniocs <antoniocs> |
Component: | Formatting & Indentation | Assignee: | Tomas Mysik <tmysik> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | tmysik |
Priority: | P3 | ||
Version: | 8.0.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
antoniocs
2015-03-17 16:50:42 UTC
Another example: function bar() { return [ function() { echo []; } ]; } Do you mean formatting or indentation? Thanks. (In reply to antoniocs from comment #0) > Is it not possible to set the auto formater to do something like what I > have?? Perhaps the best way is to write it this way: $ids = array_map(function($item) { return $item['match']; }, $record); (In reply to artur_m from comment #1) > Another example: > > function bar() > { > return > [ > function() > { > echo []; > } > ]; > } Sorry, no idea what you mean. Please, next time write exact steps, the actual and expected nehavior. Thanks for reporting. |