Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

Commit

Permalink
Replace array_push with proper dict kv set
Browse files Browse the repository at this point in the history
  • Loading branch information
benjohnde committed Mar 23, 2021
1 parent 0a08075 commit f57b333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CloudFrontInvalidations.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ public static function purgeURLs($pagesOrURLs)
$awsAccessKeyID = option('liftric.cloudfrontinvalidations.awsAccessKeyID');
$awsSecretAccessKey = option('liftric.cloudfrontinvalidations.awsSecretAccessKey');
if ($awsAccessKeyID != '' && $awsSecretAccessKey != '') {
array_push($cloudFrontConfig, ['credentials' => [
$cloudFrontConfig['credentials'] = [
'key' => $awsAccessKeyID,
'secret' => $awsSecretAccessKey
]]);
];
}

$cloudFront = new CloudFrontClient($cloudFrontConfig);
Expand Down

0 comments on commit f57b333

Please sign in to comment.