Skip to content

[5.4] fixing weird behaviour of Connection method#18356

Merged
taylorotwell merged 2 commits intolaravel:5.4from
vikkio88:18209-Weird-behaviour-of-Connection
Mar 15, 2017
Merged

[5.4] fixing weird behaviour of Connection method#18356
taylorotwell merged 2 commits intolaravel:5.4from
vikkio88:18209-Weird-behaviour-of-Connection

Conversation

@vikkio88
Copy link
Copy Markdown
Contributor

@vikkio88 vikkio88 commented Mar 15, 2017

The method getConfig() of connection class was working weirdly if you did pass null, you could still get the $this->config array, but some warnings would be thrown.
I add a default parameter and a check to avoid the error to be thrown.

PR added after speaking on twitter with @taylorotwell, was an honour sir 😄

vikkio88 and others added 2 commits March 15, 2017 18:50
implementing fix proposed on the issue
@taylorotwell taylorotwell merged commit fad0fa9 into laravel:5.4 Mar 15, 2017
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