You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code throws a syntax error where it shouldn't:
<?phpuse \A, \B, \C;
This seems to be due to the parser not accepting leading backslashes in untyped use declarations of use groups. However, due to the nature of the parser implementation, it does not show before the third use item (use \A, \B; works fine).
I've fixed this locally and will attach a PR shortly.
The text was updated successfully, but these errors were encountered:
This came up over at prettier/php-plugin#1029.
The following code throws a syntax error where it shouldn't:
This seems to be due to the parser not accepting leading backslashes in untyped use declarations of use groups. However, due to the nature of the parser implementation, it does not show before the third use item (
use \A, \B;
works fine).I've fixed this locally and will attach a PR shortly.
The text was updated successfully, but these errors were encountered: