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

Improve error message for invalid configuration #2975

Merged
merged 2 commits into from
May 23, 2024

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented May 23, 2024

Fix #2621

Checklist

  • Add tests and ensure they pass
  • Add an entry to the CHANGELOG.md file
  • Update documentation for new features

@GromNaN GromNaN added the bug label May 23, 2024
@GromNaN GromNaN added this to the 4.3 milestone May 23, 2024
@GromNaN GromNaN requested a review from a team as a code owner May 23, 2024 12:46
@GromNaN GromNaN requested a review from alcaeus May 23, 2024 12:46
@@ -261,9 +261,15 @@ protected function getHostDsn(array $config): string
*/
protected function getDsn(array $config): string
{
return $this->hasDsnString($config)
Copy link
Member Author

Choose a reason for hiding this comment

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

Function hasDsnString could be removed or deprecated (since it is protected).

@GromNaN GromNaN changed the base branch from 4.4 to 4.3 May 23, 2024 13:21
Copy link
Member

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

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

LGTM with the deprecation added to hasDsnString

@GromNaN GromNaN enabled auto-merge (squash) May 23, 2024 14:17
@GromNaN GromNaN requested a review from alcaeus May 23, 2024 14:17
@GromNaN GromNaN merged commit 7b8f0a1 into mongodb:4.3 May 23, 2024
26 checks passed
@GromNaN GromNaN deleted the config-host branch May 23, 2024 14:30
@GromNaN GromNaN added enhancement and removed bug labels May 31, 2024
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.

"Error: Undefined array key "host" - "mongodb/laravel-mongodb": "v4.0.0-ALPHA1"
2 participants