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
Generic.Strings.UnnecessaryHeredoc incorrectly converts tabs into spaces in heredoc #1320
@anomiex Thanks for the clear and reproducible bug report.
This bug could actually result in parse errors in a file if PHP 7.3+ flexible heredoc syntax is used (see: https://3v4l.org/vpD1u), so thanks for catching this!
(It's the reason why I've held back a sniff which is specifically about heredoc/nowdoc indentation - I still need to finish that one at some point -, I just missed that it also came into play in this sniff.)
Activity
jrfnl commentedon Nov 11, 2025
@anomiex Thanks for the clear and reproducible bug report.
This bug could actually result in parse errors in a file if PHP 7.3+ flexible heredoc syntax is used (see: https://3v4l.org/vpD1u), so thanks for catching this!
(It's the reason why I've held back a sniff which is specifically about heredoc/nowdoc indentation - I still need to finish that one at some point -, I just missed that it also came into play in this sniff.)
PR #1321 should fix this. Testing appreciated.