| 1 | <?php |
||
| 10 | class CacheableDatabase |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * MySQL database access |
||
| 14 | * @var mysqli |
||
| 15 | */ |
||
| 16 | protected $sql; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Caching for queried data |
||
| 20 | * @var HierarchicalSimpleCache |
||
| 21 | */ |
||
| 22 | protected $cache; |
||
| 23 | |||
| 24 | public function __construct($databaseProvider) |
||
| 45 | |||
| 46 | protected function getMySql() |
||
| 50 | |||
| 51 | protected function getCache() |
||
| 62 | } |
||
| 63 |
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..