Skip to content

Commit

Permalink
Prevent crash if key attribute is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
DocLM committed Aug 27, 2024
1 parent 7727eb0 commit 3ba62ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/BrefServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private function fixAwsCredentialsConfig(): void
continue;
}
// If a different key is in the config than in the environment variables
if ($connection['key'] && $connection['key'] !== $accessKeyId) {
if (isset($connection['key']) && $connection['key'] !== $accessKeyId) {
continue;
}

Expand All @@ -175,7 +175,7 @@ private function fixAwsCredentialsConfig(): void
continue;
}
// If a different key is in the config than in the environment variables
if ($disk['key'] && $disk['key'] !== $accessKeyId) {
if (isset($disk['key']) && $disk['key'] !== $accessKeyId) {
continue;
}

Expand All @@ -188,7 +188,7 @@ private function fixAwsCredentialsConfig(): void
continue;
}
// If a different key is in the config than in the environment variables
if ($store['key'] && $store['key'] !== $accessKeyId) {
if (isset($store['key']) && $store['key'] !== $accessKeyId) {
continue;
}

Expand Down

0 comments on commit 3ba62ab

Please sign in to comment.