Skip to content

Commit

Permalink
Fix $connectionInfo typehint
Browse files Browse the repository at this point in the history
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
  • Loading branch information
InvisibleSmiley authored Nov 22, 2021
1 parent feeb1ff commit a7e600f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/Driver/Mysqli/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a7e600f

Please sign in to comment.