1 | <?php /** MicroDbDriver */ |
||
23 | class DbDriver extends LoggerDriver |
||
24 | { |
||
25 | /** @var string $tableName logger table name */ |
||
26 | public $tableName; |
||
27 | /** @var Adapter $db */ |
||
28 | protected $db; |
||
29 | |||
30 | |||
31 | /** |
||
32 | * Constructor prepare DB |
||
33 | * |
||
34 | * @access public |
||
35 | * |
||
36 | * @param array $params configuration params |
||
37 | * |
||
38 | * @result void |
||
39 | * @throws Exception |
||
40 | */ |
||
41 | public function __construct(array $params = []) |
||
62 | |||
63 | /** |
||
64 | * Send log message into DB |
||
65 | * |
||
66 | * @access public |
||
67 | * |
||
68 | * @param integer $level level number |
||
69 | * @param string $message message to write |
||
70 | * |
||
71 | * @return void |
||
72 | */ |
||
73 | public function sendMessage($level, $message) |
||
81 | } |
||
82 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..