1 | <?php |
||
9 | class DbContext { |
||
10 | |||
11 | private $container; |
||
12 | |||
13 | 33 | public function __construct(Container $container, $config = null) { |
|
21 | |||
22 | /** |
||
23 | * |
||
24 | * @return Driver |
||
25 | */ |
||
26 | 33 | public function getDriver() { |
|
29 | |||
30 | 33 | public static function getDriverClassName($driver) { |
|
38 | |||
39 | public function query($query, $bindData = false) { |
||
42 | |||
43 | } |
||
44 |
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: