Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update ProtocolFactory.php #250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
transistive merged 4 commits into neo4j-php:main from stefanak-michal:patch-1
Mar 9, 2025
Merged

Conversation

@stefanak-michal
Copy link
Contributor

@stefanak-michal stefanak-michal commented Mar 5, 2025

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

@transistive transistive Mar 9, 2025

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
edited
Loading

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

stefanak-michal reacted with thumbs up emoji
@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

Reviewers

@transistive transistive transistive approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /