mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 06:48:41 +00:00
Fixed localization
This commit is contained in:
parent
27c19f10af
commit
8238a60357
|
|
@ -44,7 +44,7 @@ class Localization
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $country = ISO3166Enum::_US;
|
private $country = ISO3166TwoEnum::C_USA;
|
||||||
/**
|
/**
|
||||||
* Timezone.
|
* Timezone.
|
||||||
*
|
*
|
||||||
|
|
@ -162,7 +162,7 @@ class Localization
|
||||||
*/
|
*/
|
||||||
public function setCountry(string $country)
|
public function setCountry(string $country)
|
||||||
{
|
{
|
||||||
if (!ISO3166Enum::isValidValue($country)) {
|
if (!ISO3166TwoEnum::isValidValue($country)) {
|
||||||
throw new InvalidEnumValue($country);
|
throw new InvalidEnumValue($country);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user