You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 use echo() instead seems to work around it.
The text was updated successfully, but these errors were encountered:
herndlm
changed the title
False positive and false fix for DisallowYodaComparison
False positive and false fix for DisallowYodaComparison via <?= echo short tag
Jan 29, 2024
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: