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
{{ message }}
Repository navigation
Whitespace improperly removed from end of heredoc lines #2026
For PHP 7.3 and up, prettier PHP is improperly removing whitespace from the ends of lines in heredoc strings. Note that there are space characters after "foo" in the Input string that are missing in the formatted output. Prettier should not be touching whitespace inside of a string.
This broke an application for us, where we were hashing such strings to generate filenames.
Thanks for the bug report @karptonite! After a first glance at the AST it looks to me like the problem is not in the parser, but in this repository. I probably won't have the chance to take closer look until early august, so if anyone else does, please go ahead!
Activity
czosel commentedon Jul 10, 2022
Thanks for the bug report @karptonite! After a first glance at the AST it looks to me like the problem is not in the parser, but in this repository. I probably won't have the chance to take closer look until early august, so if anyone else does, please go ahead!