We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
countryName
1 parent 024a13a commit 5c18069Copy full SHA for 5c18069
1 file changed
src/models/Phone.php
@@ -44,11 +44,15 @@ public static function toPhoneString(mixed $value): string
44
45
public function __construct($config = [])
46
{
47
- // Normalize the options
+ // Normalize the settings. Included in `toArray` for integrations, but not actively in use. Potentially refactor.
48
if (array_key_exists('countryCode', $config)) {
49
unset($config['countryCode']);
50
}
51
52
+ if (array_key_exists('countryName', $config)) {
53
+ unset($config['countryName']);
54
+ }
55
+
56
parent::__construct($config);
57
58
0 commit comments