Skip to content

Commit

Permalink
Revert "Remove useless default value"
Browse files Browse the repository at this point in the history
NULL attribute is needed for IAM Roles. In this case, the object is created
without a key.

This reverts commit 9a2ae2a.
  • Loading branch information
mxhash committed Aug 28, 2019
1 parent 0318515 commit 5a7e2bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Aws/AwsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AwsClient
*/
protected $sdk;

public function __construct(AwsKey $key, $region)
public function __construct(AwsKey $key = null, $region)
{
$this->region = $region;
$this->key = $key;
Expand Down

0 comments on commit 5a7e2bf

Please sign in to comment.