Skip to content

Make MysqlClient constructor throw if given $uri is invalid #210

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
merged 1 commit into from
Jul 15, 2025

Conversation

clue
Copy link
Contributor

@clue clue commented Jul 15, 2025

This changeset updates the MysqlClient constructor to throw if the given $uri is invalid. Previously, it would only reject on the next command invoked on this instance. Moving this logic to the constructor makes it easier to detect invalid URIs for consumers of this API and should not otherwise affect "normal" operation in any way.

Builds on top of clue/reactphp-redis#163, #203, #186, #141, #135 and others
Refs #147

@clue clue added this to the v0.7.0 milestone Jul 15, 2025
@clue clue requested review from WyriHaximus and PaulRotmann July 15, 2025 07:40
Copy link
Contributor

@PaulRotmann PaulRotmann left a comment

Choose a reason for hiding this comment

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

LGTM

@WyriHaximus WyriHaximus merged commit 87fb39e into friends-of-reactphp:0.7.x Jul 15, 2025
17 checks passed
@clue clue deleted the validate-uri branch July 15, 2025 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants