Since PHP 7.3, heredoc/nowdoc closers may be indented.
This indent can use either tabs or spaces and the indent is included in the T_END_HEREDOC/T_END_NOWDOC token contents as received from the PHP native tokenizer.
However, these tokens where not included in the tokens to look at for the Generic.WhiteSpace.DisallowTabIndent sniff, which could lead to false negatives.
Since PHP 7.3, heredoc/nowdoc closers may be indented. This indent can use either tabs or spaces and the indent is included in the
T_END_HEREDOC
/T_END_NOWDOC
token contents as received from the PHP native tokenizer.However, these tokens where not included in the tokens to look at for the
Generic.WhiteSpace.DisallowTabIndent
sniff, which could lead to false negatives.Fixed now, includes tests.