mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Call static method
This commit is contained in:
@@ -28,7 +28,7 @@ function driver(): Driver {
|
||||
* @param array{?string, string, string} $credentials [$server, $username, $password]
|
||||
*/
|
||||
function connect(array $credentials): ?Db {
|
||||
$return = driver()->connect($credentials[0], $credentials[1], $credentials[2]);
|
||||
$return = Driver::connect($credentials[0], $credentials[1], $credentials[2]);
|
||||
return (is_object($return) ? $return : null);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user