fix: inherit constructor types from mysqli

This commit is contained in:
Victor Westerlund 2023-06-11 11:56:34 +02:00
parent aa73cf987d
commit f251ed4c36

View file

@ -3,7 +3,13 @@
namespace libmysqldriver;
class MySQL extends \mysqli {
function __construct(string $host, string $user, string $pass, string $db) {
function __construct(
// From: https://www.php.net/manual/en/mysqli.construct.php
string|null $host = null,
string|null $user = null,
string|null $pass = null,
string|null $db = null
) {
parent::__construct($host, $user, $pass, $db);
}