Skip to content

Commit 537bb7c

Browse files
authored
Merge pull request #103 from ulobby/main
Avoid the failure when neo4j_version is not in the Http response
2 parents b59bae0 + 7532ff4 commit 537bb7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/HttpDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function createSession(?SessionConfiguration $config = null): SessionInte
127127

128128
$discovery = HttpHelper::interpretResponse($response);
129129
/** @var string|null */
130-
$version = $discovery->neo4j_version;
130+
$version = $discovery->neo4j_version ?? null;
131131

132132
if ($version === null) {
133133
/** @var string */

0 commit comments

Comments
 (0)