Skip to content

Commit 5b70d5d

Browse files
memgraph supports bolt 4.3
1 parent 87e815c commit 5b70d5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Memgraph.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use Bolt\Bolt;
44
use Bolt\connection\{Socket, StreamSocket};
5-
use Bolt\protocol\{AProtocol, Response, V4_1, V4, V3};
5+
use Bolt\protocol\{AProtocol, Response, V4_3, V4_1, V4, V3};
66

77
/**
88
* Class Memgraph - adapter for Bolt library
@@ -33,13 +33,13 @@ class Memgraph
3333
public static int $port = 7687;
3434
public static float $timeout = 15;
3535

36-
private static AProtocol|V4_1|V4|V3|null $protocol = null;
36+
private static AProtocol|V4_3|V4_1|V4|V3|null $protocol = null;
3737
private static array $statistics;
3838

3939
/**
4040
* Get connection protocol for bolt communication
4141
*/
42-
protected static function getProtocol(): AProtocol|V4_1|V4|V3
42+
protected static function getProtocol(): AProtocol|V4_3|V4_1|V4|V3
4343
{
4444
if (is_null(self::$protocol)) {
4545
try {
@@ -54,7 +54,7 @@ protected static function getProtocol(): AProtocol|V4_1|V4|V3
5454
}
5555

5656
$bolt = new Bolt($conn);
57-
self::$protocol = $bolt->setProtocolVersions(4.1, 4.0, 3)->build();
57+
self::$protocol = $bolt->setProtocolVersions(4.3, 4.1, 4.0, 3)->build();
5858
self::$protocol->hello(self::$auth);
5959

6060
register_shutdown_function(function () {

0 commit comments

Comments
 (0)