Skip to content

Commit

Permalink
don't use empty key or secret (#47144)
Browse files Browse the repository at this point in the history
  • Loading branch information
nakahara-d committed May 21, 2023
1 parent b91940b commit 95e0757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/CacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ protected function newDynamodbClient(array $config)
'endpoint' => $config['endpoint'] ?? null,
];

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

0 comments on commit 95e0757

Please sign in to comment.