Skip to content

Commit d6892c9

Browse files
committed
Add code-completion for HAVING and WHERE operators
1 parent d79adf0 commit d6892c9

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.phpstorm.meta.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,3 +257,42 @@
257257
0,
258258
argumentsSet('table_options')
259259
);
260+
registerArgumentsSet(
261+
'operators',
262+
'=',
263+
'<=>',
264+
'!=',
265+
'<>',
266+
'>',
267+
'>=',
268+
'<',
269+
'<=',
270+
'LIKE',
271+
'NOT LIKE',
272+
'IN',
273+
'NOT IN',
274+
'BETWEEN',
275+
'NOT BETWEEN',
276+
'IS NULL',
277+
'IS NOT NULL',
278+
);
279+
expectedArguments(
280+
\Framework\Database\Manipulation\Traits\Having::having(),
281+
1,
282+
argumentsSet('operators')
283+
);
284+
expectedArguments(
285+
\Framework\Database\Manipulation\Traits\Having::orHaving(),
286+
1,
287+
argumentsSet('operators')
288+
);
289+
expectedArguments(
290+
\Framework\Database\Manipulation\Traits\Where::where(),
291+
1,
292+
argumentsSet('operators')
293+
);
294+
expectedArguments(
295+
\Framework\Database\Manipulation\Traits\Where::orWhere(),
296+
1,
297+
argumentsSet('operators')
298+
);

0 commit comments

Comments
 (0)