1 | <?php |
||
8 | class DbContext { |
||
9 | |||
10 | private $container; |
||
11 | private $config; |
||
12 | |||
13 | 33 | public function __construct(Container $container, array $config) { |
|
19 | |||
20 | /** |
||
21 | * |
||
22 | * @return Driver |
||
23 | */ |
||
24 | 33 | public function getDriver() { |
|
27 | |||
28 | 33 | public static function getDriverClassName($driver) { |
|
36 | |||
37 | public function query($query, $bindData = false) { |
||
40 | |||
41 | } |
||
42 |
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: