Open abdul-alhasany opened 1 year ago
Hi The parser seems to provide wrong start loc when using nullsafeoperator.
Example:
<?php $test = $object?->property;
The example will give this loc:
start: { line: 2, column: 15, // should be 8 offset: 21, // should be 14 }, end: { line: 2, column: 26, offset: 32 }
only start.column and start.offset provide the wrong position, the rest of the details are correct.
start.column
start.offset
When removing the operator ? the position details are correct.
?
Hi The parser seems to provide wrong start loc when using nullsafeoperator.
Example:
The example will give this loc:
only
start.column
andstart.offset
provide the wrong position, the rest of the details are correct.When removing the operator
?
the position details are correct.