Heredoc incorrectly terminated causes parse error
Closed this issue · 0 comments
Sjord commented
<?php
echo <<< END
Hello WESTEND
END;
Expected:
(program [0, 0] - [3, 4]
(php_tag [0, 0] - [0, 5])
(echo_statement [1, 0] - [3, 4]
(heredoc [1, 4] - [3, 3])))
Actual:
(program [0, 0] - [3, 4]
(php_tag [0, 0] - [0, 5])
(echo_statement [1, 0] - [2, 14]
(heredoc [1, 4] - [2, 14]))
(expression_statement [3, 0] - [3, 4]
(name [3, 0] - [3, 3])))
test2.php 0 ms (MISSING ";" [2, 14] - [2, 14])