junichi11 opened a new pull request, #7487:
URL: https://github.com/apache/netbeans/pull/7487

   - https://github.com/apache/netbeans/issues/7172
   - Check whether there is a new line between an object operator(or nullsafe 
operator) and a dispatcher
   - Check whether a parent node is `FieldAccess`
   - Add unit tests
   
   Example:
   ```php
       $test1 = $example
               ->method(
           test: $param,
       );
   
       $test2 = $example
               ->method(
               test: $param,
           )
           ->field;
   
       $test3 = $example
               ->method(
               test: $param,
           )
           ->method2();
   ```
   
   Before:
   ```php
   $test1 = $example
       ->method(
       test: $param,
   );
   
   $test2 = $example
           ->method(
               test: $param,
           )
       ->field;
   
   $test3 = $example
       ->method(
           test: $param,
       )
       ->method2();
   ```
   
   After:
   ```php
   $test1 = $example
       ->method(
           test: $param,
       );
   
   $test2 = $example
       ->method(
           test: $param,
       )
       ->field;
   
   $test3 = $example
       ->method(
           test: $param,
       )
       ->method2();
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
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

Reply via email to