From 006d1643e0540de7f455070dfa714142084f726f Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Thu, 14 Jul 2022 16:04:26 +0200 Subject: [PATCH] allow sender country is null --- src/Application/Model/Configuration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Application/Model/Configuration.php b/src/Application/Model/Configuration.php index 90f8777..9da0a7c 100644 --- a/src/Application/Model/Configuration.php +++ b/src/Application/Model/Configuration.php @@ -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; }