Jayce created NETBEANS-6422: ------------------------------- Summary: 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
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: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists