diff --git a/src/models/Phone.php b/src/models/Phone.php index 247b95757..aae762a7e 100644 --- a/src/models/Phone.php +++ b/src/models/Phone.php @@ -44,11 +44,15 @@ public static function toPhoneString(mixed $value): string public function __construct($config = []) { - // Normalize the options + // Normalize the settings. Included in `toArray` for integrations, but not actively in use. Potentially refactor. if (array_key_exists('countryCode', $config)) { unset($config['countryCode']); } + if (array_key_exists('countryName', $config)) { + unset($config['countryName']); + } + parent::__construct($config); }