We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d1030a commit b0396c5Copy full SHA for b0396c5
src/Connection.php
@@ -327,6 +327,12 @@ public function __call($method, $parameters)
327
return $this->db->$method(...$parameters);
328
}
329
330
+ /**
331
+ * Return the server version of one of the MongoDB servers: primary for
332
+ * replica sets and standalone, and the selected server for sharded clusters.
333
+ *
334
+ * @internal because this method is not part of the stable API.
335
+ */
336
public function getServerVersion(): string
337
{
338
return $this->db->command(['buildInfo' => 1])->toArray()[0]['version'];
0 commit comments