Skip to content

Commit

Permalink
Merge pull request #96 from peterfox/master
Browse files Browse the repository at this point in the history
Bug Fix for GuzzleClient constructor
  • Loading branch information
jeremeamia committed Jan 31, 2016
2 parents 1e3118d + d450c18 commit 463e272
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/GuzzleClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ public static function defaultCommandFactory(DescriptionInterface $description)
*/
protected function processConfig(array $config)
{
// set defaults as an array if not provided
if (!isset($config['defaults'])) {
$config['defaults'] = [];
}

// Use the passed in command factory or a custom factory if provided
$this->commandFactory = isset($config['command_factory'])
? $config['command_factory']
Expand Down

0 comments on commit 463e272

Please sign in to comment.