Skip to content

Commit

Permalink
Merge pull request #29738 from chrisflorin/aws-instance-profile
Browse files Browse the repository at this point in the history
[5.8] Aws Instance Profile
  • Loading branch information
taylorotwell authored Aug 26, 2019
2 parents 6fd0d16 + e31af08 commit 48113cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Mail/TransportManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected function createSesDriver()
*/
protected function addSesCredentials(array $config)
{
if ($config['key'] && $config['secret']) {
if (! empty($config['key']) && ! empty($config['secret'])) {
$config['credentials'] = Arr::only($config, ['key', 'secret', 'token']);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/Connectors/SqsConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function connect(array $config)
{
$config = $this->getDefaultConfiguration($config);

if ($config['key'] && $config['secret']) {
if (! empty($config['key']) && ! empty($config['secret'])) {
$config['credentials'] = Arr::only($config, ['key', 'secret', 'token']);
}

Expand Down

0 comments on commit 48113cf

Please sign in to comment.