PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
BSD 3-Clause "New" or "Revised" License
937
stars
56
forks
source link
Tokenizer/PHP: add tests for heredoc/nowdoc tokenization #584
Closed
jrfnl closed 3 months ago
Description
The PHP tokenizer contains logic to:
T_(START|END)_HEREDOC
toT_(START|END)_NOWDOC
;T_HEREDOC
/T_NOWDOC
tokens.T_START_(HERE|NOW)DOC
toT_STRING
if the heredoc/nowdoc is unclosed;This commit adds tests safeguarding and documenting this part of the tokenizer.
Suggested changelog entry
N/A