1 | <?php |
||
24 | class RelativeQueryBuilder implements |
||
25 | Clause\GroupByInterface, |
||
26 | Clause\HavingInterface, |
||
27 | Clause\LimitInterface, |
||
28 | Clause\OrderByInterface, |
||
29 | Clause\SelectInterface, |
||
30 | Clause\SetInterface, |
||
31 | Clause\WhereInterface |
||
32 | { |
||
33 | /** |
||
34 | * @var BuilderInterface |
||
35 | */ |
||
36 | private $wrappedBuilder; |
||
37 | |||
38 | /** |
||
39 | * @var TableInterface |
||
40 | */ |
||
41 | private $wrappedTable; |
||
42 | |||
43 | /** |
||
44 | * @param BuilderInterface $builder |
||
45 | * @param TableInterface $table |
||
46 | */ |
||
47 | 1 | public function __construct(BuilderInterface $builder, TableInterface $table) |
|
52 | |||
53 | /** |
||
54 | * @inheritdoc |
||
55 | */ |
||
56 | 1 | public function __destruct() |
|
60 | |||
61 | /** |
||
62 | * @param array $args |
||
63 | * |
||
64 | * @return array |
||
65 | */ |
||
66 | 1 | public function replaceSelfReference(array $args) |
|
76 | |||
77 | /** |
||
78 | * @param callable $callback |
||
79 | * |
||
80 | * @return mixed |
||
81 | */ |
||
82 | 1 | private function getQueryBuilder(callable $callback) |
|
86 | |||
87 | /** |
||
88 | * @inheritdoc |
||
89 | */ |
||
90 | 1 | public function addSelect($_) |
|
99 | |||
100 | /** |
||
101 | * @inheritdoc |
||
102 | */ |
||
103 | 1 | public function getSelectClauses() |
|
109 | |||
110 | /** |
||
111 | * @inheritdoc |
||
112 | */ |
||
113 | public function getGroupByClauses() |
||
119 | |||
120 | /** |
||
121 | * @inheritdoc |
||
122 | */ |
||
123 | public function isGroupByWithRollUp() |
||
129 | |||
130 | /** |
||
131 | * @inheritdoc |
||
132 | */ |
||
133 | public function addGroupBy($_) |
||
142 | |||
143 | /** |
||
144 | * @inheritdoc |
||
145 | */ |
||
146 | public function setGroupByWithRollUp($groupByWithRollUp) |
||
154 | |||
155 | /** |
||
156 | * @inheritdoc |
||
157 | */ |
||
158 | public function getHavingClauses() |
||
164 | |||
165 | /** |
||
166 | * @inheritdoc |
||
167 | */ |
||
168 | public function andHaving($_) |
||
177 | |||
178 | /** |
||
179 | * @inheritdoc |
||
180 | */ |
||
181 | public function getLimitClause() |
||
187 | |||
188 | /** |
||
189 | * @inheritdoc |
||
190 | */ |
||
191 | public function setLimit($limitClause) |
||
199 | |||
200 | /** |
||
201 | * @inheritdoc |
||
202 | */ |
||
203 | public function getOrderByClauses() |
||
209 | |||
210 | /** |
||
211 | * @inheritDoc |
||
212 | */ |
||
213 | public function addOrderBy($_) |
||
222 | |||
223 | /** |
||
224 | * @inheritDoc |
||
225 | */ |
||
226 | public function getSetClauses() |
||
232 | |||
233 | /** |
||
234 | * @inheritDoc |
||
235 | */ |
||
236 | public function addSet($_) |
||
245 | |||
246 | /** |
||
247 | * @inheritDoc |
||
248 | */ |
||
249 | public function getWhereClauses() |
||
255 | |||
256 | /** |
||
257 | * @inheritDoc |
||
258 | */ |
||
259 | public function andWhere($_) |
||
268 | } |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: