Skip to content

Conversation

stefanak-michal
Copy link
Contributor

Hi.

I suggest small improvement. By using this technique https://www.neo4j.com/docs/bolt/current/bolt/handshake/#bolt-version43 you don't have to specify list of versions you want. With third number you can define range for minor version.

Bolt driver automatically use this feature like this: https://github.com/stefanak-michal/php-bolt-driver/blob/master/src/Bolt.php#L37

@transistive transistive self-requested a review March 9, 2025 11:36
$bolt->setProtocolVersions(5.2, 5.1);
$protocol = $bolt->build();
}
$bolt->setProtocolVersions('5.4.4', 4.4);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! This is a lot more elegant

Copy link
Collaborator

@transistive transistive left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff! I have merged in your other PR so the CI works again

@transistive transistive merged commit 6d9238d into neo4j-php:main Mar 9, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants