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

ArchDemon commented on NETBEANS-4022:
-------------------------------------

I have PHP parse error (syntax error) in lines
{code:java}
$data ??= yield 11;
$data ??= yield from gen();
{code}

possible due to php 7.2 version

All other code runs successfully, but IDE makrs lines with operator yield as 
syntax error

{noformat}
Syntax error
 unexpected:    yield
 after: +=
 expected:      exit, integer, double, identifier, STRING_VARNAME, variable, 
String, String, clone, function, isset, empty, list, array, __CLASS__, 
__TRAIT__, __METHOD__, __FUNCTION__, __LINE__, __FILE__, <<<"...", namespace, 
__NAMESPACE__, __DIR__, \, define, include, include_once, eval, require, 
require_once, print, +, -, !, ~, ++, --, (int), (double), (string), (array), 
(object), (bool), (unset), @, [, new, static, (, $, '"', '`', <<<'...'

Syntax error
 unexpected:    yield from
 after: XOR

Syntax error
 unexpected:    yield from
 after: +

...
{noformat}


> php parsing code error (concatination and yield)
> ------------------------------------------------
>
>                 Key: NETBEANS-4022
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4022
>             Project: NetBeans
>          Issue Type: Bug
>          Components: php - Editor
>    Affects Versions: 11.3
>            Reporter: ArchDemon
>            Assignee: Junichi Yamamoto
>            Priority: Major
>         Attachments: php_parser_error.png
>
>
> code works, but ide decide otherwise
>  
> Error with string variable concatination with operator yield



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

Reply via email to