From afa8485488b3bf9284f13e4ff04e1e80f3156c7a Mon Sep 17 00:00:00 2001 From: freekmurze Date: Wed, 8 Nov 2023 08:32:57 +0000 Subject: [PATCH] Fix styling --- src/Support/DbConnectionInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Support/DbConnectionInfo.php b/src/Support/DbConnectionInfo.php index 544d208d..01ac2c9e 100644 --- a/src/Support/DbConnectionInfo.php +++ b/src/Support/DbConnectionInfo.php @@ -12,7 +12,7 @@ class DbConnectionInfo public function connectionCount(ConnectionInterface $connection): int { return match (true) { - $connection instanceof MySqlConnection => (int) $connection->selectOne('SELECT COUNT(*) FROM information_schema.PROCESSLIST')->{"COUNT(*)"}, + $connection instanceof MySqlConnection => (int) $connection->selectOne('SELECT COUNT(*) FROM information_schema.PROCESSLIST')->{'COUNT(*)'}, $connection instanceof PostgresConnection => (int) $connection->selectOne('select count(*) as connections from pg_stat_activity')->connections, default => throw DatabaseNotSupported::make($connection), };