Skip to content
Prev Previous commit
Next Next commit
Squiz/ComparisonOperatorUsage: adds tests with FQN true/false/null
  • Loading branch information
jrfnl committed Aug 30, 2025
commit ddeab8465cfeb4b70ebdace7e94c68c18ef13ec4
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,9 @@ if (empty($argTags > 0)) {
}

myFunction($var1 === true ? "" : "foobar");

// Verify that FQN true/false are handled the same as unqualified.
if (true) {}
if (\true) {}
for ($var1 = 10; FALSE; $var1--) {}
for ($var1 = 10; \FALSE; $var1--) {}