diff --git a/src/BrefServiceProvider.php b/src/BrefServiceProvider.php index 2a61d50..b9680e1 100644 --- a/src/BrefServiceProvider.php +++ b/src/BrefServiceProvider.php @@ -162,7 +162,7 @@ private function fixAwsCredentialsConfig(): void continue; } // If a different key is in the config than in the environment variables - if (isset($connection['key']) && $connection['key'] !== $accessKeyId) { + if (!isset($connection['key']) || $connection['key'] !== $accessKeyId) { continue; } @@ -175,7 +175,7 @@ private function fixAwsCredentialsConfig(): void continue; } // If a different key is in the config than in the environment variables - if (isset($disk['key']) && $disk['key'] !== $accessKeyId) { + if (!isset($disk['key']) || $disk['key'] !== $accessKeyId) { continue; } @@ -188,7 +188,7 @@ private function fixAwsCredentialsConfig(): void continue; } // If a different key is in the config than in the environment variables - if (isset($store['key']) && $store['key'] !== $accessKeyId) { + if (!isset($store['key']) || $store['key'] !== $accessKeyId) { continue; }