-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed as not planned
Description
$ php << EOF
<?php
match (null) {
// CASE 1: Single line: OK
1 => 123,
// CASE 2: Multi line: ERROR
2 => {
$num = 5 + 72 + 8;
return abs($num);
}
};
EOF
PHP Parse error: syntax error, unexpected token "{" in Standard input code on line 8
OK, at present the "thing" cannot be done.
But in my opinion, it is something that could be useful.
What do you think?
Can any of you, when it has some time, could propose an RFC?