kphp
kphp copied to clipboard
Context line is not always shown on error
If the error is contained in the line, which is the last in the file, the context line is not displayed.
For example:
<?php
echo $b;
Compilation error at stage: Final check, gen by final-check.cpp:633
script.php:5
Variable $b has Unknown type
<?php
echo $b;
// empty line
Compilation error at stage: Final check, gen by final-check.cpp:633
script.php:5
echo $b;
Variable $b has Unknown type