From 740d61a89b89de616802a2094ada84370f0ece5b Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Sun, 11 Jun 2023 12:02:12 +0200 Subject: [PATCH] fix: inherit constructor types from mysqli (#4) --- src/MySQL.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/MySQL.php b/src/MySQL.php index f6b6aea..7a70ed1 100644 --- a/src/MySQL.php +++ b/src/MySQL.php @@ -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); }