1
0
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:
Jakub Vrana
2025-03-31 12:35:45 +02:00
parent 7dd214a03c
commit 10bc856ebe

View File

@@ -28,7 +28,7 @@ function driver(): Driver {
* @param array{?string, string, string} $credentials [$server, $username, $password] * @param array{?string, string, string} $credentials [$server, $username, $password]
*/ */
function connect(array $credentials): ?Db { 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); return (is_object($return) ? $return : null);
} }