Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | private function addWhereClause(array $where, array $queryString): array |
||
45 | { |
||
46 | switch ($where['type']) { |
||
47 | default: |
||
48 | $queryString[$where['column']] = $where['value']; |
||
49 | break; |
||
50 | case 'In': |
||
51 | $queryString[$where['column']] = $where['values']; |
||
52 | break; |
||
53 | } |
||
54 | |||
55 | return $queryString; |
||
56 | } |
||
57 | } |
||
58 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
integer
values, zero is a special case, in particular the following results might be unexpected: