Skip to content

Commit 7532ff4

Browse files
committed
there is no garantee that neo4j_version is in the http response
1 parent b59bae0 commit 7532ff4

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)