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), };