Skip to content

Commit a7e600f

Browse files
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
1 parent feeb1ff commit a7e600f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapter/Driver/Mysqli/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Connection extends AbstractConnection
2727
/**
2828
* Constructor
2929
*
30-
* @param array|mysqli|null $connectionInfo
30+
* @param array|\mysqli|null $connectionInfo
3131
* @throws InvalidArgumentException
3232
*/
3333
public function __construct($connectionInfo = null)

0 commit comments

Comments
 (0)