You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Jayce (Jira)" <ji...@apache.org> on 2020/10/31 08:36:00 UTC

[jira] [Commented] (NETBEANS-4974) PHP8 named arguments

    [ https://issues.apache.org/jira/browse/NETBEANS-4974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17224031#comment-17224031 ] 

Jayce commented on NETBEANS-4974:
---------------------------------

Maybe this one is more easy to test?
class dummy {
     public function __construct(
             public string|object|null $a,
             public string|null $b,)
    {
        $this->a = $a;
        $this->b = $b;
    }
}

$dumb = new dummy(b:'b first', a:'a first');

> 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: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists