Skip to content

Commit fbecb2c

Browse files
Update WordPress/Docs/CodeAnalysis/AssignmentInTernaryConditionStandard.xml
Co-authored-by: Denis Žoljom <dingo-d@users.noreply.github.com>
1 parent adf6705 commit fbecb2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress/Docs/CodeAnalysis/AssignmentInTernaryConditionStandard.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
>
66
<standard>
77
<![CDATA[
8-
Variables should not be assigned in the condition of a ternary expression. This is likely a mistake, as more often than not a comparison was intended.
8+
Variables should not be assigned in the condition of a ternary expression. This is likely a mistake, as more often than not, a comparison was intended.
99
1010
Side-note: This sniff can only detect assignments in ternary conditions when parentheses are used around either the ternary expression or its condition.
1111
]]>

0 commit comments

Comments
 (0)