From 2796a10b52bb5cc93ba4a2f4ea671c58edc7f1c5 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Wed, 2 Nov 2022 13:48:08 +0100 Subject: [PATCH] Use array_key_exists instead of null check --- src/Bootstrappers/MailTenancyBootstrapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bootstrappers/MailTenancyBootstrapper.php b/src/Bootstrappers/MailTenancyBootstrapper.php index 606b09be..31f555ea 100644 --- a/src/Bootstrappers/MailTenancyBootstrapper.php +++ b/src/Bootstrappers/MailTenancyBootstrapper.php @@ -40,7 +40,7 @@ class MailTenancyBootstrapper implements TenancyBootstrapper foreach (static::$credentialsMap as $configKey => $storageKey) { $override = $tenant->$storageKey; - if (! is_null($override)) { + if (array_key_exists($storageKey, $tenant->getAttributes())) { $this->originalConfig[$configKey] ??= $this->config->get($configKey); $this->config->set($configKey, $override);