| 1 | <?php |
||
| 5 | class Db |
||
| 6 | { |
||
| 7 | private static $db; |
||
| 8 | private static $defaultSettings; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * |
||
| 12 | * @return Driver |
||
| 13 | */ |
||
| 14 | public static function getDriver() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Set the settings used for creating default datastores. |
||
| 31 | * @param array $settings |
||
| 32 | */ |
||
| 33 | public static function setDefaultSettings($settings) |
||
| 37 | |||
| 38 | public static function getDefaultSettings() |
||
| 42 | |||
| 43 | public static function reset() |
||
| 50 | |||
| 51 | public static function query($query, $bindData = false) |
||
| 55 | } |
||
| 56 |
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: