From a7e600f19ab616c9d13713dae2cf7a79089bc7a5 Mon Sep 17 00:00:00 2001 From: InvisibleSmiley Date: Mon, 22 Nov 2021 10:15:53 +0100 Subject: [PATCH] Fix $connectionInfo typehint Currently, "mysqli" is interpreted as belonging to the class's namespace which leads to errors with static analysis (e.g. PHPStan) when passing a \mysqli object --- src/Adapter/Driver/Mysqli/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Adapter/Driver/Mysqli/Connection.php b/src/Adapter/Driver/Mysqli/Connection.php index 1ad07ef2..72e69acf 100644 --- a/src/Adapter/Driver/Mysqli/Connection.php +++ b/src/Adapter/Driver/Mysqli/Connection.php @@ -27,7 +27,7 @@ class Connection extends AbstractConnection /** * Constructor * - * @param array|mysqli|null $connectionInfo + * @param array|\mysqli|null $connectionInfo * @throws InvalidArgumentException */ public function __construct($connectionInfo = null)