allow sender country is null

This commit is contained in:
Daniel Seifert 2022-07-14 16:04:26 +02:00
parent 53c4561af5
commit 407ac49a17
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F

View File

@ -58,7 +58,7 @@ class Configuration
$country = trim(Registry::getConfig()->getConfigParam('d3linkmobility_smsSenderCountry')); $country = trim(Registry::getConfig()->getConfigParam('d3linkmobility_smsSenderCountry'));
$country = strlen($country) ? strtoupper($country) : null; $country = strlen($country) ? strtoupper($country) : null;
Assert::that($country)->null() || Assert::that($country)->string()->length(2); Assert::that($country)->nullOr() || Assert::that($country)->string()->length(2);
return $country; return $country;
} }