go to bug id or search bugs for
Seems like parser thinks that is a "yield from generator" case, which is not.
// Parse error: syntax error, unexpected '(' in test.php on line 10
Add a Patch
Add a Pull Request
Verified. Fix should be simple enough.
btw, just for the record, you can work around this bug for now with the following:
The extra parenthesis doesn't change the meaning, but it does force the lexer to not consume the "from" portion of the function name.
> btw, just for the record, you can work around this bug
Yep, thanks, that was the way I fixed it at first almost automatically and calmed down ("well, it's just my migration from 5.6 and new stricter parenthesis rules in 7.1"), but it looked strange enough to dig into it a bit just out of curiosity )).