Skip to content

Commit df8353b

Browse files
authored
Fix: only set aws tokens if a key is specified
laravel/framework#53633 fixes laravel side here but it won't be patched into older versions
1 parent 39508e0 commit df8353b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/BrefServiceProvider.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private function fixAwsCredentialsConfig(): void
162162
continue;
163163
}
164164
// If a different key is in the config than in the environment variables
165-
if (isset($connection['key']) && $connection['key'] !== $accessKeyId) {
165+
if (!isset($connection['key']) || $connection['key'] !== $accessKeyId) {
166166
continue;
167167
}
168168

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

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

0 commit comments

Comments
 (0)