php4fan opened a new issue, #6731:
URL: https://github.com/apache/netbeans/issues/6731
### Apache NetBeans version
Apache NetBeans 19
### What happened
After the following code:
```
<?php
$result = someFunction(
"example {$postId}"
);
```
the next line after that should have zero indentation.
Instead, it gets indented with 4 spaces, i.e. one indentation.
A real-world use case might be something like this:
```
<?php
$result = queryDatabase(
"SELECT field1, field2, field3, field4, field5 "
. "FROM table AS t1 "
. "JOIN table2 AS t2 ON t2.whatever_id = t1.id "
. "JOIN table2 AS t3 ON t3.whatever_id = t2.id "
. "WHERE t1.id = {$something['id']}"
);
```
after which I get even 2 indentations (i.e. 8 spaces).
### How to reproduce
In a PHP file type this:
```
<?php
$result = someFunction(
"example {$postId}"
);
```
and then add a newline. Observe how the new line gets automatically indented.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Manjaro Linux
### JDK
21; OpenJDK 64-Bit Server VM 21+35
### Apache NetBeans packaging
Third-party package
### Anything else
_No response_
### Are you willing to submit a pull request?
No
--
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