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 comment between the end of the function and the ; is crucial. It's also reproducible with code like $x = str_contains('abcde', 'a') /* test */; or $x = 7 /* seven */;.
Steps to reproduce:
Create a simple PHP file like this:
The comment between the end of the function and the
;
is crucial. It's also reproducible with code like$x = str_contains('abcde', 'a') /* test */;
or$x = 7 /* seven */;
.Parse it:
Actual Result
Expected Result
I'd like to see to "bar" comment to show up somewhere in the AST. As an attribute of the
Stmt\Echo_
most likely.Use Case
We use this in our internal translation system to annotate calls to our translation engine.
The text was updated successfully, but these errors were encountered: