-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
It seems that short closure without braces aint working for me. This code cannot be compiled into the correct syntax in PHP:
$result = array_map($x ~> $x * 2 * ++$y, range(1, 10));
Instead it has parse error: 'syntax error, unexpected '~', expecting ',' or ')''. Apparently the issue is with expression() identifier which doesnt seem to work, its a bug with Yay library. I wonder if you have a workaround for this issue, or we may have to wait a response from marcioAlmada to fix Yay. Or if you dont have the same problem as I do, lemme know too.
Metadata
Metadata
Assignees
Labels
No labels