allow sender country is null

This commit is contained in:
Daniel Seifert 2022-07-14 16:04:26 +02:00
bovenliggende 53c4561af5
commit 006d1643e0
Getekend door: DanielS
GPG sleutel-ID: 8A7C4C6ED1915C6F
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen

Bestand weergeven

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