1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 18:34:04 +00:00

Add return types to MailTenancyBootstrapper methods

This commit is contained in:
lukinovec 2022-11-22 06:49:23 +01:00
parent 62619e6738
commit f1690f0951

View file

@ -49,7 +49,7 @@ class MailTenancyBootstrapper implements TenancyBootstrapper
$this->unsetConfig(); $this->unsetConfig();
} }
protected function setConfig(Tenant $tenant) protected function setConfig(Tenant $tenant): void
{ {
foreach (static::$credentialsMap as $configKey => $storageKey) { foreach (static::$credentialsMap as $configKey => $storageKey) {
$override = $tenant->$storageKey; $override = $tenant->$storageKey;
@ -62,7 +62,7 @@ class MailTenancyBootstrapper implements TenancyBootstrapper
} }
} }
protected function unsetConfig() protected function unsetConfig(): void
{ {
foreach ($this->originalConfig as $key => $value) { foreach ($this->originalConfig as $key => $value) {
$this->config->set($key, $value); $this->config->set($key, $value);