php/php-langspec

Echo is a statement, not an expression

nikic opened this issue · 2 comments

nikic commented

echo is currently listed as an intrinsic expression (https://github.com/php/php-langspec/blob/master/spec/10-expressions.md#echo), but it is a statement.

nikic commented

It does mention that "intrinsic-construct can be used only as stand-alone statement", but this should also be part of the grammar.

nikic commented

Fixed by cbb78da.