mirror of
https://codeberg.org/vlw/php-mysql.git
synced 2025-09-14 00:33:41 +02:00
fix: inherit constructor types from mysqli (#4)
This commit is contained in:
parent
aa73cf987d
commit
740d61a89b
1 changed files with 7 additions and 1 deletions
|
@ -3,7 +3,13 @@
|
||||||
namespace libmysqldriver;
|
namespace libmysqldriver;
|
||||||
|
|
||||||
class MySQL extends \mysqli {
|
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);
|
parent::__construct($host, $user, $pass, $db);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue