[
https://issues.apache.org/jira/browse/NETBEANS-6422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17483669#comment-17483669
]
Jayce commented on NETBEANS-6422:
---------------------------------
Found the one conflicting:
!image-2022-01-28-10-19-30-576.png|width=336,height=333!
> PHP named argument indentation
> ------------------------------
>
> Key: NETBEANS-6422
> URL: https://issues.apache.org/jira/browse/NETBEANS-6422
> Project: NetBeans
> Issue Type: Improvement
> Components: php - Editor
> Affects Versions: 12.5, 12.6
> Reporter: Jayce
> Assignee: Junichi Yamamoto
> Priority: Major
> Attachments: image-2022-01-28-10-19-30-576.png
>
>
> Hi,
> Netbeans does not align code with named Arguments (php8.x) correctly
> {code:java}
> class Foo
> { public static function m1(string $arg1, string $arg2): void
> {
> }
> }
> class Test
> {
> function badIndentation(): void
> {
> Foo::m1(
> arg1: self::create($this->create('ni')),
> arg2: 'something'
> );
> }
> public function create(string $test): string
> {
> return $test;
> }
> }
> {code}
> Note the "arg2" line to the far right, aligned with the create function.
> arg1: and arg2: must have the same alignment.
> I checked my formatting preferences, i can't find something strange.
> I addition, is there a way to have a PSR-12 compliant formatting option
> without manually changing Netbeans preferences ?
> Thanks
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists