False positive and false fix for DisallowYodaComparison
via <?=
echo short tag
#1658
Labels
DisallowYodaComparison
via <?=
echo short tag
#1658
The following PHP HTML template code causes a false positive via
DisallowYodaComparison
:even more interesting though maybe, if I try to auto-fix this I end up with the following which is syntactically very different:
it looks like the 2 independent ternaries are somehow influencing each other.
adding a semicolon after the first ternary or not using the
<?=
short tag but useecho()
instead seems to work around it.The text was updated successfully, but these errors were encountered: