public $db_connect; Задаю свойство
public function construct($db_connect) Задаю параметр для конструктора
$this->connect = $db_connect;
$file = __DIR . '/log.txt',
file_put_contents($file, mysqli_get_server_info($this->connect)) Пытаюсь узнать версию бд
выдает шквал ошибок
PHP Warning: Missing argument 1 for VKNotification::__construct(), called in
PHP Notice: Undefined variable: db_connect in
mysqli_get_server_info() expects parameter 1 to be mysqli, null given in
PHP Warning: Missing argument 1 for VKNotification::__construct(), called in
PHP Notice: Undefined variable: db_connect in