I have simple line class autorization extends mysql and it causes Fatal error: Call to a member function close() on a non-object in… On that line is
function __destruct(){
$this->connection->close();
}
Constructor
$mysqli = new mysqli(*****);
$this->connection = $mysqli;
at the moment no other methods ot class mysql are not used
Connection property is not initialised . If you have a constructor in
mysqlclass make sure that you haven’t completely overwritten it by specifying a constructor inautorizationclass. This can be achieved by adding:Btw from your question is not clear who maintains the connection property: mysql class or not?