Matthew Weier O'Phinney on Nostr: After seeing yet another PHP heredoc/nowdoc example that breaks the parent code ...
After seeing yet another PHP heredoc/nowdoc example that breaks the parent code indentation, your reminder: as of #PHP 7.3 (that's almost six feature versions ago!), all line indentation matching that of the end marker is stripped from those lines. This means you CAN indent those lines so they flow better in your code.
Please do!
https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes
Please do!
https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes