Skip to content

Commit

Permalink
[5.4] fixing weird behaviour of Connection method (#18356)
Browse files Browse the repository at this point in the history
* laravel/framework#18209
implementing fix proposed on the issue

* Update Connection.php
  • Loading branch information
vikkio88 authored and taylorotwell committed Mar 15, 2017
1 parent 0c777fd commit ba465fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -957,10 +957,10 @@ public function getName()
/**
* Get an option from the configuration options.
*
* @param string $option
* @param string|null $option
* @return mixed
*/
public function getConfig($option)
public function getConfig($option = null)
{
return Arr::get($this->config, $option);
}
Expand Down

0 comments on commit ba465fb

Please sign in to comment.