php-parser
php-parser copied to clipboard
Bug with encapsed strings
PHP Version
7.4 and 8.0
Code Example
"$property->name[]";
Actual Behavior
==> syntax error: unexpected '[' at line 2
Expected Behavior
No error.
"$a[10]: some" is $a[10] . ": some"
"$a->prop[10]: some" is $a->prop . "[10]: some"