| 1 | <?php |
||
| 8 | class DefaultTransformer implements Transformer |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Assemble the query string from the builder. |
||
| 13 | * @param Builder $builder |
||
| 14 | * @return mixed[] |
||
| 15 | */ |
||
| 16 | public function buildQueryString(Builder $builder): array |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Adds a where clause to the query string. |
||
| 40 | * @param string[] $where |
||
| 41 | * @param mixed[] $queryString |
||
| 42 | * @return string[] |
||
| 43 | */ |
||
| 44 | private function addWhereClause(array $where, array $queryString): array |
||
| 57 | } |
||
| 58 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
integervalues, zero is a special case, in particular the following results might be unexpected: