Closed danopz closed 7 years ago
This needs a test to accompany it that demonstrates this works.
Agreed.
There are already tests for array and Connection: https://github.com/spotorm/spot2/blob/master/tests/Config.php#L49-L79
My bad. I didn't realize that this was just updating the comment.
Documentation on Link has an example to add a connection via an array. The method doc for addConnection says that the second param must be of type string, but this is not true. Some could either pass an Array, a String, or an instance of DBAL\Connection so I updated the param type to reflect this. I found this problem because PHPStorm gave me a notice abut this. Also fixed a typo for the default param.