Skip to content

Commit fad0fa9

Browse files
vikkio88taylorotwell
authored andcommitted
[5.4] fixing weird behaviour of Connection method (#18356)
* #18209 implementing fix proposed on the issue * Update Connection.php
1 parent 661c0a5 commit fad0fa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Database/Connection.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -957,10 +957,10 @@ public function getName()
957957
/**
958958
* Get an option from the configuration options.
959959
*
960-
* @param string $option
960+
* @param string|null $option
961961
* @return mixed
962962
*/
963-
public function getConfig($option)
963+
public function getConfig($option = null)
964964
{
965965
return Arr::get($this->config, $option);
966966
}

0 commit comments

Comments
 (0)