mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-06-07 04:24:54 +02:00
Doc strings have a trailing \n and these will get interpreted as \r\n and removed from the string contents. For nowdoc, fall back to single quote if there's a trailing \r. For heredoc, escape all isolated \r -- unlike \n and \r\n this is really a special character, because this is no longer relevant as an actual newline character.