We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
?->
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.
?
The text was updated successfully, but these errors were encountered:
fix: better handle of assignment operator alignment
7a3e1ea
The parser have an issue when using nullsafeoperator, so this commit fixes this issue. glayzzle/php-parser#1128
No branches or pull requests
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.The text was updated successfully, but these errors were encountered: