[
https://issues.apache.org/jira/browse/NETBEANS-4974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17269217#comment-17269217
]
Cyril VERLOOP commented on NETBEANS-4974:
-----------------------------------------
Hi,
I would like to add a case where a named argument is seen as a syntax error in
build 266.
Ex :
{code:java}
public function __construct()
{
parent::__construct(legs: 4); // Seen as a syntax error in NB build 266.
}
{code}
I have attached a working example using PHP 8.0.1.
You can execute the code to see it working through "php index.php" or Docker
(Dockerfile included).
> PHP8 named arguments
> --------------------
>
> Key: NETBEANS-4974
> URL: https://issues.apache.org/jira/browse/NETBEANS-4974
> Project: NetBeans
> Issue Type: Improvement
> Affects Versions: 11.3
> Reporter: Jayce
> Priority: Major
> Attachments: PHP8NamedArgument.jpg
>
>
> Tested in latest build (netbeans-linux-143-on-20201030-release.zip 30 oct.
> 2020 05:40:08)
> Project opened in Netbeans is set to PHP8.
> Netbeans shows a syntax error on PHP8 named arguments.
> These lines are valid in PHP8:
> array_fill(start_index: 0, num: 100, value: 50); // From RFC
> setcookie(name: 'test', expires: time() + 60 * 60 * 2,); // other example
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
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