mirror of
https://codeberg.org/vlw/php-mysql.git
synced 2025-09-13 16:23:42 +02:00
fix: inherit constructor types from mysqli
This commit is contained in:
parent
aa73cf987d
commit
f251ed4c36
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue