php oop problem extends mysqli override method?
i have a problem with my class extends mysqli that i cannot override query method
that error shows up
( ! ) Strict standards: Declaration of database::query() should be compatible with mysqli::query($query) in E:\LOCALHOST\www\basket\library\database.class.php on line 92
here is a part of the code
class database extends mysqli
{
protected $config;
protected static $instance;
protected $query;
protected $where;
protected $limit;
public function __construct($config)
{
$this->config = $config;
self::$instance = parent::__construct($config['hostname'],$config['username'],$config['password'],$config['database'],$config['port']);
}
public static function getInstance() {
if(!self::$instance)
{
self::$instance = new self();
}
return self::$instance;
}
public function query()
{
}