Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function getDBALQueryBuilder() |
||
12 | { |
||
13 | /* @var Stub $conn */ |
||
14 | $conn = Stub::make(Connection::class, [ |
||
15 | ]); |
||
16 | |||
17 | $expressionBuilder = new ExpressionBuilder($conn); |
||
|
|||
18 | /* @var Stub $conn */ |
||
19 | $conn = Stub::make(Connection::class, [ |
||
20 | 'getExpressionBuilder' => $expressionBuilder |
||
21 | ]); |
||
22 | |||
23 | return new \Doctrine\DBAL\Query\QueryBuilder($conn); |
||
24 | } |
||
25 | |||
33 |
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: