diff --git a/src/Connection.php b/src/Connection.php index 343c0ca21..685e509b6 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -327,6 +327,12 @@ public function __call($method, $parameters) return $this->db->$method(...$parameters); } + /** + * Return the server version of one of the MongoDB servers: primary for + * replica sets and standalone, and the selected server for sharded clusters. + * + * @internal + */ public function getServerVersion(): string { return $this->db->command(['buildInfo' => 1])->toArray()[0]['version'];