mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 12:54:05 +00:00
Use array_key_exists instead of null check
This commit is contained in:
parent
1eaefc01c1
commit
2796a10b52
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue