Skip to content
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

Allow constructing with null scheme #5

Closed
wants to merge 2 commits into from

Conversation

abnegate
Copy link
Member

@abnegate abnegate commented May 6, 2024

When constructing with a string with no scheme, we assign null to $this->scheme, but that throws a type exception because the property was not declared as nullable.

Needed so that from Appwrite, we can construct a database DSN from a simple string, or a properly formatted DSN.

@abnegate abnegate requested a review from christyjacob4 May 6, 2024 05:18
@abnegate abnegate changed the title Allow constructing will null scheme Allow constructing with null scheme May 6, 2024
@abnegate abnegate closed this May 6, 2024
@abnegate abnegate deleted the feat-allow-nullable-scheme branch May 6, 2024 06:05
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.

1 participant