5 Commits (d3c176ec696c2aaf98e482fed44edf92e8975c34)

Author SHA1 Message Date
jrfnl e729c418dd ClassMapGenerator: add test for "marker in text" bug
In PHP < 7.3, the heredoc/nowdoc marker was allowed to occur in the text, as long as it did not occur at the very start of the line.

This was also not handled correctly.

Ref: https://www.php.net/manual/en/migration73.incompatible.php#migration73.incompatible.core.heredoc-nowdoc
3 years ago
Rob Bast 25e3f6d4b9 expand regex and testcases 6 years ago
Rob Bast 971528916b fix regex for heredoc/nowdoc
* take into account relaxed changes introduced in php 7.3
  * see: 4887357269
* allow " as well as ', which was introduced in php 5.3

closes #8080
6 years ago
Fabien Potencier 12421dd6b7 fixed class map generator when using a heredoc with spaces 11 years ago
Jordi Boggiano de3235a2a4 Add tests to prevent regressions on strings/nowdoc/comment stripping 12 years ago