[
https://issues.apache.org/jira/browse/NETBEANS-4974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17224031#comment-17224031
]
Jayce edited comment on NETBEANS-4974 at 10/31/20, 8:36 AM:
------------------------------------------------------------
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 second');
was (Author: fft):
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: [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