22
33use Bolt \Bolt ;
44use 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