File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,10 @@ public static function evaluate(
145
145
return \strtolower ((string ) $ l_value ) === \strtolower ((string ) $ r_value ) ? 1 : 0 ^ $ expr ->negatedInt ;
146
146
}
147
147
148
+ if (empty ($ l_value ) && empty ($ r_value )) {
149
+ return !$ expr ->negatedInt ;
150
+ }
151
+
148
152
return $ l_value == $ r_value ? 1 : 0 ^ $ expr ->negatedInt ;
149
153
150
154
case '<> ' :
@@ -153,7 +157,11 @@ public static function evaluate(
153
157
return \strtolower ((string ) $ l_value ) !== \strtolower ((string ) $ r_value ) ? 1 : 0 ^ $ expr ->negatedInt ;
154
158
}
155
159
156
- return (float ) $ l_value != (float ) $ r_value ? 1 : 0 ^ $ expr ->negatedInt ;
160
+ if (empty ($ l_value ) && empty ($ r_value )) {
161
+ return $ expr ->negatedInt ;
162
+ }
163
+
164
+ return $ l_value != $ r_value ? 1 : 0 ^ $ expr ->negatedInt ;
157
165
158
166
case '> ' :
159
167
if ($ as_string ) {
You can’t perform that action at this time.
0 commit comments