aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/commerceguys/intl/src
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/commerceguys/intl/src')
-rw-r--r--vendor/commerceguys/intl/src/Calculator.php51
-rw-r--r--vendor/commerceguys/intl/src/Currency/Currency.php26
-rw-r--r--vendor/commerceguys/intl/src/Currency/CurrencyRepository.php53
-rw-r--r--vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php16
-rw-r--r--vendor/commerceguys/intl/src/Formatter/CurrencyFormatter.php22
-rw-r--r--vendor/commerceguys/intl/src/Formatter/CurrencyFormatterInterface.php4
-rw-r--r--vendor/commerceguys/intl/src/Formatter/FormatterTrait.php18
-rw-r--r--vendor/commerceguys/intl/src/Formatter/NumberFormatter.php14
-rw-r--r--vendor/commerceguys/intl/src/Formatter/NumberFormatterInterface.php4
-rw-r--r--vendor/commerceguys/intl/src/Formatter/ParsedPattern.php24
-rw-r--r--vendor/commerceguys/intl/src/Language/Language.php14
-rw-r--r--vendor/commerceguys/intl/src/Language/LanguageRepository.php54
-rw-r--r--vendor/commerceguys/intl/src/Language/LanguageRepositoryInterface.php14
-rw-r--r--vendor/commerceguys/intl/src/Locale.php43
-rw-r--r--vendor/commerceguys/intl/src/NumberFormat/NumberFormat.php52
-rw-r--r--vendor/commerceguys/intl/src/NumberFormat/NumberFormatRepository.php291
-rw-r--r--vendor/commerceguys/intl/src/NumberFormat/NumberFormatRepositoryInterface.php2
17 files changed, 245 insertions, 457 deletions
diff --git a/vendor/commerceguys/intl/src/Calculator.php b/vendor/commerceguys/intl/src/Calculator.php
index e00a564c1..dca506de9 100644
--- a/vendor/commerceguys/intl/src/Calculator.php
+++ b/vendor/commerceguys/intl/src/Calculator.php
@@ -24,7 +24,7 @@ final class Calculator
*
* @return string The result.
*/
- public static function add($first_number, $second_number, $scale = 6)
+ public static function add(string $first_number, string $second_number, int $scale = 6): string
{
self::assertNumberFormat($first_number);
self::assertNumberFormat($second_number);
@@ -44,7 +44,7 @@ final class Calculator
*
* @return string The result.
*/
- public static function subtract($first_number, $second_number, $scale = 6)
+ public static function subtract(string $first_number, string $second_number, int $scale = 6): string
{
self::assertNumberFormat($first_number);
self::assertNumberFormat($second_number);
@@ -64,7 +64,7 @@ final class Calculator
*
* @return string The result.
*/
- public static function multiply($first_number, $second_number, $scale = 6)
+ public static function multiply(string $first_number, string $second_number, int $scale = 6): string
{
self::assertNumberFormat($first_number);
self::assertNumberFormat($second_number);
@@ -84,7 +84,7 @@ final class Calculator
*
* @return string The result.
*/
- public static function divide($first_number, $second_number, $scale = 6)
+ public static function divide(string $first_number, string $second_number, int $scale = 6): string
{
self::assertNumberFormat($first_number);
self::assertNumberFormat($second_number);
@@ -100,7 +100,7 @@ final class Calculator
*
* @return string The result.
*/
- public static function ceil($number)
+ public static function ceil(string $number): string
{
if (self::compare($number, 0) == 1) {
$result = bcadd($number, '1', 0);
@@ -118,7 +118,7 @@ final class Calculator
*
* @return string The result.
*/
- public static function floor($number)
+ public static function floor(string $number): string
{
if (self::compare($number, 0) == 1) {
$result = bcadd($number, '0', 0);
@@ -145,7 +145,7 @@ final class Calculator
*
* @throws \InvalidArgumentException
*/
- public static function round($number, $precision = 0, $mode = PHP_ROUND_HALF_UP)
+ public static function round(string $number, int $precision = 0, int $mode = PHP_ROUND_HALF_UP): string
{
self::assertNumberFormat($number);
if (!is_numeric($precision) || $precision < 0) {
@@ -163,7 +163,7 @@ final class Calculator
// The rounding direction is based on the first decimal after $precision.
$number_parts = explode('.', $number);
$decimals = !empty($number_parts[1]) ? $number_parts[1] : '0';
- $relevant_decimal = isset($decimals[$precision]) ? $decimals[$precision] : 0;
+ $relevant_decimal = $decimals[$precision] ?? 0;
if ($relevant_decimal < 5) {
$number = $rounded_down;
} elseif ($relevant_decimal == 5) {
@@ -197,11 +197,10 @@ final class Calculator
* @return int 0 if both numbers are equal, 1 if the first one is greater,
* -1 otherwise.
*/
- public static function compare($first_number, $second_number, $scale = 6)
+ public static function compare(string $first_number, string $second_number, int $scale = 6): int
{
self::assertNumberFormat($first_number);
self::assertNumberFormat($second_number);
-
return bccomp($first_number, $second_number, $scale);
}
@@ -216,7 +215,7 @@ final class Calculator
*
* @return string The trimmed number.
*/
- public static function trim($number)
+ public static function trim(string $number): string
{
if (strpos($number, '.') != false) {
// The number is decimal, strip trailing zeroes.
@@ -228,20 +227,18 @@ final class Calculator
return $number;
}
- /**
- * Assert that the given number is a numeric string value.
- *
- * @param string $number The number to check.
- *
- * @throws \InvalidArgumentException
- */
- public static function assertNumberFormat($number)
- {
- if (is_float($number)) {
- throw new \InvalidArgumentException(sprintf('The provided value "%s" must be a string, not a float.', $number));
- }
- if (!is_numeric($number)) {
- throw new \InvalidArgumentException(sprintf('The provided value "%s" is not a numeric value.', $number));
- }
- }
+ /**
+ * Assert that the given number is a numeric string value.
+ *
+ * @param string $number The number to check.
+ *
+ * @throws \InvalidArgumentException
+ */
+ public static function assertNumberFormat(string $number)
+ {
+ if (!is_numeric($number)) {
+ throw new \InvalidArgumentException(sprintf('The provided value "%s" is not a numeric value.', $number));
+ }
+ }
+
}
diff --git a/vendor/commerceguys/intl/src/Currency/Currency.php b/vendor/commerceguys/intl/src/Currency/Currency.php
index 28329795c..0812482f2 100644
--- a/vendor/commerceguys/intl/src/Currency/Currency.php
+++ b/vendor/commerceguys/intl/src/Currency/Currency.php
@@ -12,42 +12,42 @@ final class Currency
*
* @var string
*/
- protected $currencyCode;
+ protected string $currencyCode;
/**
* The currency name.
*
* @var string
*/
- protected $name;
+ protected string $name;
/**
* The numeric currency code.
*
* @var string
*/
- protected $numericCode;
+ protected string $numericCode;
/**
* The currency symbol.
*
* @var string
*/
- protected $symbol;
+ protected string $symbol;
/**
* The number of fraction digits.
*
* @var int
*/
- protected $fractionDigits = 2;
+ protected int $fractionDigits = 2;
/**
* The locale (i.e. "en_US").
*
* @var string
*/
- protected $locale;
+ protected string $locale;
/**
* Creates a new Currency instance.
@@ -80,7 +80,7 @@ final class Currency
*
* @return string
*/
- public function __toString()
+ public function __toString(): string
{
return $this->currencyCode;
}
@@ -90,7 +90,7 @@ final class Currency
*
* @return string
*/
- public function getCurrencyCode()
+ public function getCurrencyCode(): string
{
return $this->currencyCode;
}
@@ -102,7 +102,7 @@ final class Currency
*
* @return string
*/
- public function getName()
+ public function getName(): string
{
return $this->name;
}
@@ -115,7 +115,7 @@ final class Currency
*
* @return string
*/
- public function getNumericCode()
+ public function getNumericCode(): string
{
return $this->numericCode;
}
@@ -127,7 +127,7 @@ final class Currency
*
* @return string
*/
- public function getSymbol()
+ public function getSymbol(): string
{
return $this->symbol;
}
@@ -140,7 +140,7 @@ final class Currency
*
* @return int
*/
- public function getFractionDigits()
+ public function getFractionDigits(): int
{
return $this->fractionDigits;
}
@@ -152,7 +152,7 @@ final class Currency
*
* @return string
*/
- public function getLocale()
+ public function getLocale(): string
{
return $this->locale;
}
diff --git a/vendor/commerceguys/intl/src/Currency/CurrencyRepository.php b/vendor/commerceguys/intl/src/Currency/CurrencyRepository.php
index 7f660f381..eef62494e 100644
--- a/vendor/commerceguys/intl/src/Currency/CurrencyRepository.php
+++ b/vendor/commerceguys/intl/src/Currency/CurrencyRepository.php
@@ -15,48 +15,47 @@ class CurrencyRepository implements CurrencyRepositoryInterface
*
* @var string
*/
- protected $defaultLocale;
+ protected string $defaultLocale;
/**
* The fallback locale.
*
* @var string
*/
- protected $fallbackLocale;
+ protected string $fallbackLocale;
/**
* The path where per-locale definitions are stored.
*
* @var string
*/
- protected $definitionPath;
+ protected string $definitionPath;
/**
* Per-locale currency definitions.
*
* @var array
*/
- protected $definitions = [];
+ protected array $definitions = [];
/**
* The available locales.
*
* @var array
*/
- protected $availableLocales = [
- 'af', 'ar', 'as', 'ast', 'az', 'be', 'bg', 'bn', 'bn-IN', 'brx', 'bs',
- 'bs-Cyrl', 'ca', 'ce', 'cs', 'cv', 'cy', 'da', 'de', 'de-CH', 'dz',
- 'el', 'en', 'en-001', 'en-AU', 'en-CA', 'en-GG', 'en-IM', 'en-JE',
- 'en-MV', 'es', 'es-419', 'es-CL', 'es-GT', 'es-MX', 'es-US', 'es-VE',
- 'et', 'eu', 'fa', 'fa-AF', 'fi', 'fil', 'fr', 'fr-CA', 'ga', 'gd', 'gl',
- 'gsw', 'gu', 'he', 'hi', 'hi-Latn', 'hr', 'hu', 'hy', 'id', 'is', 'it',
- 'ja', 'ka', 'kk', 'km', 'ko', 'kok', 'ks', 'ky', 'lb', 'lo', 'lt', 'lv',
- 'mg', 'mk', 'ml', 'mn', 'mr', 'ms', 'my', 'ne', 'nl', 'nn', 'no', 'pa',
- 'pl', 'ps', 'pt', 'pt-PT', 'rn', 'ro', 'ru', 'sd', 'si', 'sk', 'sl',
- 'so', 'sq', 'sr', 'sr-Cyrl-BA', 'sr-Latn', 'sr-Latn-BA', 'sv', 'sw',
- 'sw-CD', 'sw-KE', 'ta', 'te', 'th', 'tk', 'tr', 'uk', 'ur', 'ur-IN',
- 'uz', 'uz-Cyrl', 'vi', 'yue', 'yue-Hans', 'zh', 'zh-Hans-HK', 'zh-Hant',
- 'zh-Hant-HK'
+ protected array $availableLocales = [
+ 'af', 'am', 'ar', 'as', 'az', 'be', 'bg', 'bn', 'bn-IN', 'bs', 'ca',
+ 'chr', 'cs', 'cy', 'da', 'de', 'de-CH', 'dsb', 'el', 'el-polyton', 'en',
+ 'en-001', 'en-AU', 'en-CA', 'en-GG', 'en-IM', 'en-JE', 'es', 'es-419',
+ 'es-CL', 'es-GT', 'es-MX', 'es-US', 'es-VE', 'et', 'eu', 'fa', 'fa-AF',
+ 'fi', 'fil', 'fr', 'fr-CA', 'ga', 'gd', 'gl', 'gu', 'he', 'hi',
+ 'hi-Latn', 'hr', 'hsb', 'hu', 'hy', 'id', 'ig', 'is', 'it', 'ja', 'ka',
+ 'kk', 'km', 'ko', 'kok', 'ky', 'lo', 'lt', 'lv', 'mk', 'mn', 'mr', 'ms',
+ 'my', 'ne', 'nl', 'nn', 'no', 'or', 'pa', 'pl', 'ps', 'pt', 'pt-PT',
+ 'ro', 'ru', 'si', 'sk', 'sl', 'so', 'sq', 'sr', 'sr-Cyrl-BA', 'sr-Latn',
+ 'sr-Latn-BA', 'sv', 'sw', 'sw-CD', 'sw-KE', 'ta', 'te', 'th', 'tk', 'tr',
+ 'uk', 'ur', 'ur-IN', 'uz', 'vi', 'yue', 'yue-Hans', 'zh', 'zh-Hans-HK',
+ 'zh-Hant', 'zh-Hant-HK', 'zu',
];
/**
@@ -64,20 +63,20 @@ class CurrencyRepository implements CurrencyRepositoryInterface
*
* @param string $defaultLocale The default locale. Defaults to 'en'.
* @param string $fallbackLocale The fallback locale. Defaults to 'en'.
- * @param string $definitionPath The path to the currency definitions.
+ * @param string|null $definitionPath The path to the currency definitions.
* Defaults to 'resources/currency'.
*/
- public function __construct($defaultLocale = 'en', $fallbackLocale = 'en', $definitionPath = null)
+ public function __construct(string $defaultLocale = 'en', string $fallbackLocale = 'en', string $definitionPath = null)
{
$this->defaultLocale = $defaultLocale;
$this->fallbackLocale = $fallbackLocale;
- $this->definitionPath = $definitionPath ? $definitionPath : __DIR__ . '/../../resources/currency/';
+ $this->definitionPath = $definitionPath ?: __DIR__ . '/../../resources/currency/';
}
/**
* {@inheritdoc}
*/
- public function get($currencyCode, $locale = null)
+ public function get(string $currencyCode, string $locale = null): Currency
{
$currencyCode = strtoupper($currencyCode);
$baseDefinitions = $this->getBaseDefinitions();
@@ -100,7 +99,7 @@ class CurrencyRepository implements CurrencyRepositoryInterface
/**
* {@inheritdoc}
*/
- public function getAll($locale = null)
+ public function getAll(string $locale = null): array
{
$locale = $locale ?: $this->defaultLocale;
$locale = Locale::resolve($this->availableLocales, $locale, $this->fallbackLocale);
@@ -122,7 +121,7 @@ class CurrencyRepository implements CurrencyRepositoryInterface
/**
* {@inheritdoc}
*/
- public function getList($locale = null)
+ public function getList(string $locale = null): array
{
$locale = $locale ?: $this->defaultLocale;
$locale = Locale::resolve($this->availableLocales, $locale, $this->fallbackLocale);
@@ -142,7 +141,7 @@ class CurrencyRepository implements CurrencyRepositoryInterface
*
* @return array
*/
- protected function loadDefinitions($locale)
+ protected function loadDefinitions(string $locale): array
{
if (!isset($this->definitions[$locale])) {
$filename = $this->definitionPath . $locale . '.json';
@@ -163,7 +162,7 @@ class CurrencyRepository implements CurrencyRepositoryInterface
* - The numeric code.
* - The fraction digits.
*/
- protected function getBaseDefinitions()
+ protected function getBaseDefinitions(): array
{
return [
'AED' => ['784', 2],
@@ -289,7 +288,6 @@ class CurrencyRepository implements CurrencyRepositoryInterface
'SGD' => ['702', 2],
'SHP' => ['654', 2],
'SLE' => ['925', 2],
- 'SLL' => ['694', 0],
'SOS' => ['706', 0],
'SRD' => ['968', 2],
'SSP' => ['728', 2],
@@ -324,6 +322,7 @@ class CurrencyRepository implements CurrencyRepositoryInterface
'YER' => ['886', 0],
'ZAR' => ['710', 2],
'ZMW' => ['967', 2],
+ 'ZWG' => ['924', 2],
'ZWL' => ['932', 2],
];
}
diff --git a/vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php b/vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php
index eb726ddb8..36f7d7995 100644
--- a/vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php
+++ b/vendor/commerceguys/intl/src/Currency/CurrencyRepositoryInterface.php
@@ -2,6 +2,8 @@
namespace CommerceGuys\Intl\Currency;
+use CommerceGuys\Intl\Exception\UnknownCurrencyException;
+
/**
* Currency repository interface.
*/
@@ -11,27 +13,29 @@ interface CurrencyRepositoryInterface
* Gets a currency matching the provided currency code.
*
* @param string $currencyCode The currency code.
- * @param string $locale The locale (i.e. fr-FR).
+ * @param string|null $locale The locale (i.e. fr-FR).
*
* @return Currency
+ *
+ * @throws UnknownCurrencyException
*/
- public function get($currencyCode, $locale = null);
+ public function get(string $currencyCode, string $locale = null): Currency;
/**
* Gets all currencies.
*
- * @param string $locale The locale (i.e. fr-FR).
+ * @param string|null $locale The locale (i.e. fr-FR).
*
* @return Currency[] An array of currencies, keyed by currency code.
*/
- public function getAll($locale = null);
+ public function getAll(string $locale = null): array;
/**
* Gets a list of currencies.
*
- * @param string $locale The locale (i.e. fr-FR).
+ * @param string|null $locale The locale (i.e. fr-FR).
*
* @return string[] An array of currency names, keyed by currency code.
*/
- public function getList($locale = null);
+ public function getList(string $locale = null): array;
}
diff --git a/vendor/commerceguys/intl/src/Formatter/CurrencyFormatter.php b/vendor/commerceguys/intl/src/Formatter/CurrencyFormatter.php
index 7d3b90d6e..a95fd5fcb 100644
--- a/vendor/commerceguys/intl/src/Formatter/CurrencyFormatter.php
+++ b/vendor/commerceguys/intl/src/Formatter/CurrencyFormatter.php
@@ -21,42 +21,42 @@ class CurrencyFormatter implements CurrencyFormatterInterface
*
* @var NumberFormatRepositoryInterface
*/
- protected $numberFormatRepository;
+ protected NumberFormatRepositoryInterface $numberFormatRepository;
/**
* The currency repository.
*
* @var CurrencyRepositoryInterface
*/
- protected $currencyRepository;
+ protected CurrencyRepositoryInterface $currencyRepository;
/**
* The default locale.
*
* @var string
*/
- protected $defaultLocale;
+ protected string $defaultLocale;
/**
* The loaded number formats.
*
* @var NumberFormat[]
*/
- protected $numberFormats = [];
+ protected array $numberFormats = [];
/**
* The loaded currencies.
*
* @var Currency[]
*/
- protected $currencies = [];
+ protected array $currencies = [];
/**
* The default options.
*
* @var array
*/
- protected $defaultOptions = [
+ protected array $defaultOptions = [
'locale' => 'en',
'use_grouping' => true,
'minimum_fraction_digits' => null,
@@ -90,7 +90,7 @@ class CurrencyFormatter implements CurrencyFormatterInterface
/**
* {@inheritdoc}
*/
- public function format($number, $currencyCode, array $options = [])
+ public function format(string $number, string $currencyCode, array $options = []): string
{
if (!is_numeric($number)) {
$message = sprintf('The provided value "%s" is not a valid number or numeric string.', $number);
@@ -127,7 +127,7 @@ class CurrencyFormatter implements CurrencyFormatterInterface
/**
* {@inheritdoc}
*/
- public function parse($number, $currencyCode, array $options = [])
+ public function parse(string $number, string $currencyCode, array $options = []): string|bool
{
$this->validateOptions($options);
$options = array_replace($this->defaultOptions, $options);
@@ -151,7 +151,7 @@ class CurrencyFormatter implements CurrencyFormatterInterface
*
* @return NumberFormat
*/
- protected function getNumberFormat($locale)
+ protected function getNumberFormat(string $locale): NumberFormat
{
if (!isset($this->numberFormats[$locale])) {
$this->numberFormats[$locale] = $this->numberFormatRepository->get($locale);
@@ -168,7 +168,7 @@ class CurrencyFormatter implements CurrencyFormatterInterface
*
* @return Currency
*/
- protected function getCurrency($currencyCode, $locale)
+ protected function getCurrency(string $currencyCode, string $locale): Currency
{
if (!isset($this->currencies[$currencyCode][$locale])) {
try {
@@ -192,7 +192,7 @@ class CurrencyFormatter implements CurrencyFormatterInterface
/**
* {@inheritdoc}
*/
- protected function getAvailablePatterns(NumberFormat $numberFormat)
+ protected function getAvailablePatterns(NumberFormat $numberFormat): array
{
return [
'standard' => $numberFormat->getCurrencyPattern(),
diff --git a/vendor/commerceguys/intl/src/Formatter/CurrencyFormatterInterface.php b/vendor/commerceguys/intl/src/Formatter/CurrencyFormatterInterface.php
index 3fc25fcc6..217171a4c 100644
--- a/vendor/commerceguys/intl/src/Formatter/CurrencyFormatterInterface.php
+++ b/vendor/commerceguys/intl/src/Formatter/CurrencyFormatterInterface.php
@@ -33,7 +33,7 @@ interface CurrencyFormatterInterface
*
* @return string The formatted number.
*/
- public function format($number, $currencyCode, array $options = []);
+ public function format(string $number, string $currencyCode, array $options = []): string;
/**
* Parses a formatted currency amount.
@@ -50,5 +50,5 @@ interface CurrencyFormatterInterface
*
* @return string|false The parsed number or FALSE on error.
*/
- public function parse($number, $currencyCode, array $options = []);
+ public function parse(string $number, string $currencyCode, array $options = []): string|bool;
}
diff --git a/vendor/commerceguys/intl/src/Formatter/FormatterTrait.php b/vendor/commerceguys/intl/src/Formatter/FormatterTrait.php
index 11cdd2372..716c570b6 100644
--- a/vendor/commerceguys/intl/src/Formatter/FormatterTrait.php
+++ b/vendor/commerceguys/intl/src/Formatter/FormatterTrait.php
@@ -13,14 +13,14 @@ trait FormatterTrait
*
* @var ParsedPattern[]
*/
- protected $parsedPatterns = [];
+ protected array $parsedPatterns = [];
/**
* Localized digits.
*
* @var array
*/
- protected $digits = [
+ protected array $digits = [
NumberFormat::NUMBERING_SYSTEM_ARABIC => [
0 => '٠', 1 => '١', 2 => '٢', 3 => '٣', 4 => '٤',
5 => '٥', 6 => '٦', 7 => '٧', 8 => '٨', 9 => '٩',
@@ -47,7 +47,7 @@ trait FormatterTrait
*
* @return string The formatted number.
*/
- protected function formatNumber($number, NumberFormat $numberFormat, array $options = [])
+ protected function formatNumber(string $number, NumberFormat $numberFormat, array $options = []): string
{
$parsedPattern = $this->getParsedPattern($numberFormat, $options['style']);
// Start by rounding the number, if rounding is enabled.
@@ -116,7 +116,7 @@ trait FormatterTrait
*
* @see http://cldr.unicode.org/translation/number-symbols
*/
- protected function localizeNumber($number, NumberFormat $numberFormat)
+ protected function localizeNumber(string $number, NumberFormat $numberFormat): string
{
// Localize digits.
$numberingSystem = $numberFormat->getNumberingSystem();
@@ -139,9 +139,9 @@ trait FormatterTrait
* @param string $number The number.
* @param NumberFormat $numberFormat The number format.
*
- * @return string The localized number.
+ * @return string|bool The localized number, or FALSE on error.
*/
- protected function parseNumber($number, NumberFormat $numberFormat)
+ protected function parseNumber(string $number, NumberFormat $numberFormat): string|bool
{
// Convert localized symbols back to their original form.
$replacements = array_flip($this->getLocalizedSymbols($numberFormat));
@@ -179,8 +179,10 @@ trait FormatterTrait
* @param string $style The formatter style.
*
* @return ParsedPattern
+ *
+ * @throws InvalidArgumentException
*/
- protected function getParsedPattern(NumberFormat $numberFormat, $style)
+ protected function getParsedPattern(NumberFormat $numberFormat, string $style): ParsedPattern
{
$locale = $numberFormat->getLocale();
if (!isset($this->parsedPatterns[$locale][$style])) {
@@ -202,7 +204,7 @@ trait FormatterTrait
*
* @return string[] The patterns, keyed by style.
*/
- abstract protected function getAvailablePatterns(NumberFormat $numberFormat);
+ abstract protected function getAvailablePatterns(NumberFormat $numberFormat): array;
/**
* Gets the localized symbols for the provided number format.
diff --git a/vendor/commerceguys/intl/src/Formatter/NumberFormatter.php b/vendor/commerceguys/intl/src/Formatter/NumberFormatter.php
index 03795fe6d..2ef2b282c 100644
--- a/vendor/commerceguys/intl/src/Formatter/NumberFormatter.php
+++ b/vendor/commerceguys/intl/src/Formatter/NumberFormatter.php
@@ -19,14 +19,14 @@ class NumberFormatter implements NumberFormatterInterface
*
* @var NumberFormatRepositoryInterface
*/
- protected $numberFormatRepository;
+ protected NumberFormatRepositoryInterface $numberFormatRepository;
/**
* The default options.
*
* @var array
*/
- protected $defaultOptions = [
+ protected array $defaultOptions = [
'locale' => 'en',
'use_grouping' => true,
'minimum_fraction_digits' => 0,
@@ -40,7 +40,7 @@ class NumberFormatter implements NumberFormatterInterface
*
* @var NumberFormat[]
*/
- protected $numberFormats = [];
+ protected array $numberFormats = [];
/**
* Creates a NumberFormatter instance.
@@ -65,7 +65,7 @@ class NumberFormatter implements NumberFormatterInterface
/**
* {@inheritdoc}
*/
- public function format($number, array $options = [])
+ public function format(string $number, array $options = []): string
{
if (!is_numeric($number)) {
$message = sprintf('The provided value "%s" is not a valid number or numeric string.', $number);
@@ -88,7 +88,7 @@ class NumberFormatter implements NumberFormatterInterface
/**
* {@inheritdoc}
*/
- public function parse($number, array $options = [])
+ public function parse(string $number, array $options = []): string|bool
{
$this->validateOptions($options);
$options = array_replace($this->defaultOptions, $options);
@@ -105,7 +105,7 @@ class NumberFormatter implements NumberFormatterInterface
*
* @return NumberFormat
*/
- protected function getNumberFormat($locale)
+ protected function getNumberFormat(string $locale): NumberFormat
{
if (!isset($this->numberFormats[$locale])) {
$this->numberFormats[$locale] = $this->numberFormatRepository->get($locale);
@@ -117,7 +117,7 @@ class NumberFormatter implements NumberFormatterInterface
/**
* {@inheritdoc}
*/
- protected function getAvailablePatterns(NumberFormat $numberFormat)
+ protected function getAvailablePatterns(NumberFormat $numberFormat): array
{
return [
'decimal' => $numberFormat->getDecimalPattern(),
diff --git a/vendor/commerceguys/intl/src/Formatter/NumberFormatterInterface.php b/vendor/commerceguys/intl/src/Formatter/NumberFormatterInterface.php
index ce6207f52..2ebea7e11 100644
--- a/vendor/commerceguys/intl/src/Formatter/NumberFormatterInterface.php
+++ b/vendor/commerceguys/intl/src/Formatter/NumberFormatterInterface.php
@@ -29,7 +29,7 @@ interface NumberFormatterInterface
*
* @return string The formatted number.
*/
- public function format($number, array $options = []);
+ public function format(string $number, array $options = []): string;
/**
* Parses a number.
@@ -45,5 +45,5 @@ interface NumberFormatterInterface
*
* @return string|false The parsed number or FALSE on error.
*/
- public function parse($number, array $options = []);
+ public function parse(string $number, array $options = []): string|bool;
}
diff --git a/vendor/commerceguys/intl/src/Formatter/ParsedPattern.php b/vendor/commerceguys/intl/src/Formatter/ParsedPattern.php
index aa6e5f43e..faa5c879d 100644
--- a/vendor/commerceguys/intl/src/Formatter/ParsedPattern.php
+++ b/vendor/commerceguys/intl/src/Formatter/ParsedPattern.php
@@ -12,42 +12,42 @@ final class ParsedPattern
*
* @var string
*/
- protected $positivePattern;
+ protected string $positivePattern;
/**
* The negative number pattern.
*
* @var string
*/
- protected $negativePattern;
+ protected string $negativePattern;
/**
* Whether grouping is used.
*
* @var bool
*/
- protected $groupingUsed;
+ protected bool $groupingUsed;
/**
* The primary group size.
*
* @var int
*/
- protected $primaryGroupSize;
+ protected int $primaryGroupSize;
/**
* The secondary group size.
*
* @var int
*/
- protected $secondaryGroupSize;
+ protected int $secondaryGroupSize;
/**
* Creates a new ParsedPattern instance.
*
* @param string $pattern The raw pattern.
*/
- public function __construct($pattern)
+ public function __construct(string $pattern)
{
// Split the pattern into positive and negative patterns.
$patternList = explode(';', $pattern);
@@ -58,7 +58,7 @@ final class ParsedPattern
$this->positivePattern = $patternList[0];
$this->negativePattern = $patternList[1];
- $this->groupingUsed = (strpos($patternList[0], ',') !== false);
+ $this->groupingUsed = (str_contains($patternList[0], ','));
if ($this->groupingUsed) {
preg_match('/#+0/', $patternList[0], $primaryGroupMatches);
$this->primaryGroupSize = $this->secondaryGroupSize = strlen($primaryGroupMatches[0]);
@@ -77,7 +77,7 @@ final class ParsedPattern
*
* @return string
*/
- public function getPositivePattern()
+ public function getPositivePattern(): string
{
return $this->positivePattern;
}
@@ -89,7 +89,7 @@ final class ParsedPattern
*
* @return string
*/
- public function getNegativePattern()
+ public function getNegativePattern(): string
{
return $this->negativePattern;
}
@@ -102,7 +102,7 @@ final class ParsedPattern
*
* @return bool
*/
- public function isGroupingUsed()
+ public function isGroupingUsed(): bool
{
return $this->groupingUsed;
}
@@ -112,7 +112,7 @@ final class ParsedPattern
*
* @return int|null
*/
- public function getPrimaryGroupSize()
+ public function getPrimaryGroupSize(): ?int
{
return $this->primaryGroupSize;
}
@@ -122,7 +122,7 @@ final class ParsedPattern
*
* @return int|null
*/
- public function getSecondaryGroupSize()
+ public function getSecondaryGroupSize(): ?int
{
return $this->secondaryGroupSize;
}
diff --git a/vendor/commerceguys/intl/src/Language/Language.php b/vendor/commerceguys/intl/src/Language/Language.php
index d8196f26c..ae068ef21 100644
--- a/vendor/commerceguys/intl/src/Language/Language.php
+++ b/vendor/commerceguys/intl/src/Language/Language.php
@@ -12,21 +12,21 @@ final class Language
*
* @var string
*/
- protected $languageCode;
+ protected string $languageCode;
/**
* The language name.
*
* @var string
*/
- protected $name;
+ protected string $name;
/**
* The locale (i.e. "en-US").
*
* @var string
*/
- protected $locale;
+ protected string $locale;
/**
* Creates a new Language instance.
@@ -51,7 +51,7 @@ final class Language
*
* @return string
*/
- public function __toString()
+ public function __toString(): string
{
return $this->languageCode;
}
@@ -61,7 +61,7 @@ final class Language
*
* @return string
*/
- public function getLanguageCode()
+ public function getLanguageCode(): string
{
return $this->languageCode;
}
@@ -73,7 +73,7 @@ final class Language
*
* @return string
*/
- public function getName()
+ public function getName(): string
{
return $this->name;
}
@@ -85,7 +85,7 @@ final class Language
*
* @return string
*/
- public function getLocale()
+ public function getLocale(): string
{
return $this->locale;
}
diff --git a/vendor/commerceguys/intl/src/Language/LanguageRepository.php b/vendor/commerceguys/intl/src/Language/LanguageRepository.php
index 3a493da20..4cf32bf30 100644
--- a/vendor/commerceguys/intl/src/Language/LanguageRepository.php
+++ b/vendor/commerceguys/intl/src/Language/LanguageRepository.php
@@ -15,51 +15,49 @@ class LanguageRepository implements LanguageRepositoryInterface
*
* @var string
*/
- protected $defaultLocale;
+ protected string $defaultLocale;
/**
* The fallback locale.
*
* @var string
*/
- protected $fallbackLocale;
+ protected string $fallbackLocale;
/**
* The path where per-locale definitions are stored.
*
* @var string
*/
- protected $definitionPath;
+ protected string $definitionPath;
/**
* Per-locale language definitions.
*
* @var array
*/
- protected $definitions = [];
+ protected array $definitions = [];
/**
* The available locales.
*
* @var array
*/
- protected $availableLocales = [
- 'af', 'ar', 'ar-EG', 'ar-LY', 'ar-SA', 'as', 'ast', 'az', 'az-Cyrl',
- 'be', 'bg', 'bn', 'bn-IN', 'brx', 'bs', 'bs-Cyrl', 'ca', 'ce', 'cs',
- 'cy', 'da', 'de', 'de-AT', 'dz', 'el', 'en', 'en-001', 'en-AU', 'en-CA',
- 'en-GB', 'en-IN', 'en-MV', 'es', 'es-419', 'es-AR', 'es-BO', 'es-CL',
- 'es-CO', 'es-CR', 'es-DO', 'es-EC', 'es-GT', 'es-HN', 'es-MX', 'es-NI',
- 'es-PA', 'es-PE', 'es-PR', 'es-PY', 'es-SV', 'es-US', 'es-VE', 'et',
- 'eu', 'fa', 'fa-AF', 'fi', 'fil', 'fr', 'fr-BE', 'fr-CA', 'fr-CH',
- 'ga', 'gd', 'gl', 'gsw', 'gu', 'he', 'hi', 'hi-Latn', 'hr', 'hu', 'hy',
- 'id', 'is', 'it', 'ja', 'ka', 'kk', 'km', 'ko', 'kok', 'ks', 'ku', 'ky',
- 'lb', 'lo', 'lt', 'lv', 'mai', 'mg', 'mk', 'ml', 'mn', 'mr', 'ms', 'mt',
- 'my', 'ne', 'nl', 'nn', 'no', 'pa', 'pl', 'ps', 'ps-PK', 'pt', 'pt-PT',
- 'rn', 'ro', 'ro-MD', 'ru', 'rw', 'sd', 'si', 'sk', 'sl', 'so', 'sq',
- 'sr', 'sr-Cyrl-BA', 'sr-Cyrl-ME', 'sr-Cyrl-XK', 'sr-Latn', 'sr-Latn-BA',
- 'sr-Latn-ME', 'sr-Latn-XK', 'sv', 'sw', 'sw-CD', 'sw-KE', 'ta', 'te',
- 'tg', 'th', 'tk', 'to', 'tr', 'uk', 'ur', 'ur-IN', 'uz', 'uz-Cyrl',
- 'vi', 'yue', 'yue-Hans', 'zh', 'zh-Hant', 'zh-Hant-HK'
+ protected array $availableLocales = [
+ 'af', 'am', 'ar', 'ar-EG', 'ar-LY', 'ar-SA', 'as', 'az', 'be', 'bg',
+ 'bn', 'bs', 'ca', 'chr', 'cs', 'cy', 'da', 'de', 'de-AT', 'dsb', 'el',
+ 'el-polyton', 'en', 'en-AU', 'en-CA', 'en-IN', 'es', 'es-419', 'es-AR',
+ 'es-BO', 'es-CL', 'es-CO', 'es-CR', 'es-DO', 'es-EC', 'es-GT', 'es-HN',
+ 'es-MX', 'es-NI', 'es-PA', 'es-PE', 'es-PY', 'es-US', 'es-VE', 'et',
+ 'eu', 'fa', 'fa-AF', 'fi', 'fil', 'fr', 'fr-BE', 'fr-CA', 'fr-CH', 'ga',
+ 'gd', 'gl', 'gu', 'he', 'hi', 'hi-Latn', 'hr', 'hsb', 'hu', 'hy', 'id',
+ 'ig', 'is', 'it', 'ja', 'ka', 'kk', 'km', 'ko', 'kok', 'ky', 'lo', 'lt',
+ 'lv', 'mk', 'mn', 'mr', 'ms', 'my', 'ne', 'nl', 'nn', 'no', 'or', 'pa',
+ 'pl', 'ps', 'ps-PK', 'pt', 'pt-PT', 'ro', 'ro-MD', 'ru', 'si', 'sk',
+ 'sl', 'so', 'sq', 'sr', 'sr-Cyrl-BA', 'sr-Cyrl-ME', 'sr-Cyrl-XK',
+ 'sr-Latn', 'sr-Latn-BA', 'sr-Latn-ME', 'sr-Latn-XK', 'sv', 'sw',
+ 'sw-CD', 'sw-KE', 'ta', 'te', 'th', 'tk', 'tr', 'uk', 'ur', 'ur-IN',
+ 'uz', 'vi', 'yue', 'yue-Hans', 'zh', 'zh-Hant', 'zh-Hant-HK', 'zu',
];
/**
@@ -67,20 +65,20 @@ class LanguageRepository implements LanguageRepositoryInterface
*
* @param string $defaultLocale The default locale. Defaults to 'en'.
* @param string $fallbackLocale The fallback locale. Defaults to 'en'.
- * @param string $definitionPath The path to the currency definitions.
+ * @param string|null $definitionPath The path to the currency definitions.
* Defaults to 'resources/language'.
*/
- public function __construct($defaultLocale = 'en', $fallbackLocale = 'en', $definitionPath = null)
+ public function __construct(string $defaultLocale = 'en', string $fallbackLocale = 'en', string $definitionPath = null)
{
$this->defaultLocale = $defaultLocale;
$this->fallbackLocale = $fallbackLocale;
- $this->definitionPath = $definitionPath ? $definitionPath : __DIR__ . '/../../resources/language/';
+ $this->definitionPath = $definitionPath ?: __DIR__ . '/../../resources/language/';
}
/**
* {@inheritdoc}
*/
- public function get($languageCode, $locale = null)
+ public function get(string $languageCode, string $locale = null): Language
{
$locale = $locale ?: $this->defaultLocale;
$locale = Locale::resolve($this->availableLocales, $locale, $this->fallbackLocale);
@@ -101,7 +99,7 @@ class LanguageRepository implements LanguageRepositoryInterface
/**
* {@inheritdoc}
*/
- public function getAll($locale = null)
+ public function getAll(string $locale = null): array
{
$locale = $locale ?: $this->defaultLocale;
$locale = Locale::resolve($this->availableLocales, $locale, $this->fallbackLocale);
@@ -121,7 +119,7 @@ class LanguageRepository implements LanguageRepositoryInterface
/**
* {@inheritdoc}
*/
- public function getList($locale = null)
+ public function getList(string $locale = null): array
{
$locale = $locale ?: $this->defaultLocale;
$locale = Locale::resolve($this->availableLocales, $locale, $this->fallbackLocale);
@@ -141,7 +139,7 @@ class LanguageRepository implements LanguageRepositoryInterface
*
* @return array
*/
- protected function loadDefinitions($locale)
+ protected function loadDefinitions(string $locale): array
{
if (!isset($this->definitions[$locale])) {
$filename = $this->definitionPath . $locale . '.json';
diff --git a/vendor/commerceguys/intl/src/Language/LanguageRepositoryInterface.php b/vendor/commerceguys/intl/src/Language/LanguageRepositoryInterface.php
index 12480fc1b..40597e3e5 100644
--- a/vendor/commerceguys/intl/src/Language/LanguageRepositoryInterface.php
+++ b/vendor/commerceguys/intl/src/Language/LanguageRepositoryInterface.php
@@ -11,27 +11,29 @@ interface LanguageRepositoryInterface
* Gets a language matching the provided language code.
*
* @param string $languageCode The language code.
- * @param string $locale The locale (i.e. fr-FR).
+ * @param string|null $locale The locale (i.e. fr-FR).
*
* @return Language
+ *
+ * @throws \CommerceGuys\Intl\Exception\UnknownLanguageException
*/
- public function get($languageCode, $locale = null);
+ public function get(string $languageCode, string $locale = null): Language;
/**
* Gets all languages.
*
- * @param string $locale The locale (i.e. fr-FR).
+ * @param string|null $locale The locale (i.e. fr-FR).
*
* @return Language[] An array of languages, keyed by language code.
*/
- public function getAll($locale = null);
+ public function getAll(string $locale = null): array;
/**
* Gets a list of languages.
*
- * @param string $locale The locale (i.e. fr-FR).
+ * @param string|null $locale The locale (i.e. fr-FR).
*
* @return array An array of language names, keyed by language code.
*/
- public function getList($locale = null);
+ public function getList(string $locale = null): array;
}
diff --git a/vendor/commerceguys/intl/src/Locale.php b/vendor/commerceguys/intl/src/Locale.php
index c5c3c5ef5..9016f5bab 100644
--- a/vendor/commerceguys/intl/src/Locale.php
+++ b/vendor/commerceguys/intl/src/Locale.php
@@ -11,7 +11,7 @@ final class Locale
*
* @var array
*/
- protected static $aliases = [
+ protected static array $aliases = [
'az-AZ' => 'az-Latn-AZ',
'bs-BA' => 'bs-Latn-BA',
'ha-GH' => 'ha-Latn-GH',
@@ -62,7 +62,7 @@ final class Locale
*
* @var array
*/
- protected static $parents = [
+ protected static array $parents = [
'en-150' => 'en-001',
'en-AG' => 'en-001',
'en-AI' => 'en-001',
@@ -91,6 +91,7 @@ final class Locale
'en-GM' => 'en-001',
'en-GY' => 'en-001',
'en-HK' => 'en-001',
+ 'en-ID' => 'en-001',
'en-IE' => 'en-001',
'en-IL' => 'en-001',
'en-IM' => 'en-001',
@@ -169,6 +170,7 @@ final class Locale
'es-EC' => 'es-419',
'es-GT' => 'es-419',
'es-HN' => 'es-419',
+ 'es-JP' => 'es-419',
'es-MX' => 'es-419',
'es-NI' => 'es-419',
'es-PA' => 'es-419',
@@ -182,6 +184,7 @@ final class Locale
'ht' => 'fr-HT',
'nb' => 'no',
'nn' => 'no',
+ 'no-NO' => 'no',
'pt-AO' => 'pt-PT',
'pt-CH' => 'pt-PT',
'pt-CV' => 'pt-PT',
@@ -198,28 +201,26 @@ final class Locale
'bal-Latn' => 'und',
'blt-Latn' => 'und',
'bs-Cyrl' => 'und',
- 'byn-Latn' => 'und',
'en-Dsrt' => 'und',
'en-Shaw' => 'und',
'iu-Latn' => 'und',
'kk-Arab' => 'und',
'ks-Deva' => 'und',
'ku-Arab' => 'und',
+ 'kxv-Deva' => 'und',
+ 'kxv-Orya' => 'und',
+ 'kxv-Telu' => 'und',
'ky-Arab' => 'und',
'ky-Latn' => 'und',
- 'ml-Arab' => 'und',
'mn-Mong' => 'und',
'mni-Mtei' => 'und',
'ms-Arab' => 'und',
'pa-Arab' => 'und',
- 'sat-Deva' => 'und',
- 'sd-Deva' => 'und',
- 'sd-Khoj' => 'und',
- 'sd-Sind' => 'und',
'so-Arab' => 'und',
'sr-Latn' => 'und',
'sw-Arab' => 'und',
'tg-Arab' => 'und',
+ 'ug-Cyrl' => 'und',
'uz-Arab' => 'und',
'uz-Cyrl' => 'und',
'yue-Hans' => 'und',
@@ -235,12 +236,8 @@ final class Locale
*
* @return bool TRUE if the locales match, FALSE otherwise.
*/
- public static function match($firstLocale, $secondLocale)
+ public static function match(string $firstLocale, string $secondLocale): bool
{
- if (empty($firstLocale) || empty($secondLocale)) {
- return false;
- }
-
return self::canonicalize($firstLocale) === self::canonicalize($secondLocale);
}
@@ -257,12 +254,8 @@ final class Locale
*
* @return bool TRUE if there is a common candidate, FALSE otherwise.
*/
- public static function matchCandidates($firstLocale, $secondLocale)
+ public static function matchCandidates(string $firstLocale, string $secondLocale): bool
{
- if (empty($firstLocale) || empty($secondLocale)) {
- return false;
- }
-
$firstLocale = self::canonicalize($firstLocale);
$secondLocale = self::canonicalize($secondLocale);
$firstLocaleCandidates = self::getCandidates($firstLocale);
@@ -283,13 +276,13 @@ final class Locale
*
* @param array $availableLocales The available locales.
* @param string $locale The requested locale (i.e. fr-FR).
- * @param string $fallbackLocale A fallback locale (i.e "en").
+ * @param string|null $fallbackLocale A fallback locale (i.e "en").
*
* @return string
*
* @throws UnknownLocaleException
*/
- public static function resolve(array $availableLocales, $locale, $fallbackLocale = null)
+ public static function resolve(array $availableLocales, string $locale, string $fallbackLocale = null): string
{
$locale = self::canonicalize($locale);
$resolvedLocale = null;
@@ -317,7 +310,7 @@ final class Locale
*
* @return string The canonicalized locale.
*/
- public static function canonicalize($locale)
+ public static function canonicalize(string $locale): string
{
if (empty($locale)) {
return $locale;
@@ -356,11 +349,11 @@ final class Locale
* 2) sr
*
* @param string $locale The locale (i.e. fr-FR).
- * @param string $fallbackLocale A fallback locale (i.e "en").
+ * @param string|null $fallbackLocale A fallback locale (i.e "en").
*
* @return array An array of all variants of a locale.
*/
- public static function getCandidates($locale, $fallbackLocale = null)
+ public static function getCandidates(string $locale, string $fallbackLocale = null): array
{
$locale = self::replaceAlias($locale);
$candidates = [$locale];
@@ -388,7 +381,7 @@ final class Locale
* @return string|null
* The parent, or null if none found.
*/
- public static function getParent($locale)
+ public static function getParent(string $locale): ?string
{
$parent = null;
if (isset(self::$parents[$locale])) {
@@ -416,7 +409,7 @@ final class Locale
*
* @return string The locale.
*/
- public static function replaceAlias($locale)
+ public static function replaceAlias(string $locale): string
{
if (!empty($locale) && isset(self::$aliases[$locale])) {
$locale = self::$aliases[$locale];
diff --git a/vendor/commerceguys/intl/src/NumberFormat/NumberFormat.php b/vendor/commerceguys/intl/src/NumberFormat/NumberFormat.php
index 8c41a5aa8..1825b1be4 100644
--- a/vendor/commerceguys/intl/src/NumberFormat/NumberFormat.php
+++ b/vendor/commerceguys/intl/src/NumberFormat/NumberFormat.php
@@ -23,91 +23,91 @@ final class NumberFormat
*
* @var string
*/
- protected $locale;
+ protected string $locale;
/**
* The number pattern used to format decimal numbers.
*
* @var string
*/
- protected $decimalPattern;
+ protected string $decimalPattern;
/**
* The number pattern used to format percentages.
*
* @var string
*/
- protected $percentPattern;
+ protected string $percentPattern;
/**
* The number pattern used to format currency amounts.
*
* @var string
*/
- protected $currencyPattern;
+ protected string $currencyPattern;
/**
* The number pattern used to format accounting currency amounts.
*
* @var string
*/
- protected $accountingCurrencyPattern;
+ protected string $accountingCurrencyPattern;
/**
* The numbering system.
*
* @var string
*/
- protected $numberingSystem = self::NUMBERING_SYSTEM_LATIN;
+ protected string $numberingSystem = self::NUMBERING_SYSTEM_LATIN;
/**
* The decimal separator.
*
* @var string
*/
- protected $decimalSeparator = '.';
+ protected string $decimalSeparator = '.';
/**
* The decimal separator for currency amounts.
*
* @var string
*/
- protected $decimalCurrencySeparator = '.';
+ protected string $decimalCurrencySeparator = '.';
/**
* The grouping separator.
*
* @var string
*/
- protected $groupingSeparator = ',';
+ protected string $groupingSeparator = ',';
/**
* The grouping separator for currency amounts.
*
* @var string
*/
- protected $groupingCurrencySeparator = ',';
+ protected string $groupingCurrencySeparator = ',';
/**
* The plus sign.
*
* @var string
*/
- protected $plusSign = '+';
+ protected string $plusSign = '+';
/**
* The number symbols.
*
* @var string
*/
- protected $minusSign = '-';
+ protected string $minusSign = '-';
/**
* The percent sign.
*
* @var string
*/
- protected $percentSign = '%';
+ protected string $percentSign = '%';
/**
* Creates a new NumberFormat instance.
@@ -173,7 +173,7 @@ final class NumberFormat
*
* @return string
*/
- public function getLocale()
+ public function getLocale(): string
{
return $this->locale;
}
@@ -185,7 +185,7 @@ final class NumberFormat
*
* @see http://cldr.unicode.org/translation/number-patterns
*/
- public function getDecimalPattern()
+ public function getDecimalPattern(): string
{
return $this->decimalPattern;
}
@@ -197,7 +197,7 @@ final class NumberFormat
*
* @see http://cldr.unicode.org/translation/number-patterns
*/
- public function getPercentPattern()
+ public function getPercentPattern(): string
{
return $this->percentPattern;
}
@@ -209,7 +209,7 @@ final class NumberFormat
*
* @see http://cldr.unicode.org/translation/number-patterns
*/
- public function getCurrencyPattern()
+ public function getCurrencyPattern(): string
{
return $this->currencyPattern;
}
@@ -223,7 +223,7 @@ final class NumberFormat
*
* @see http://cldr.unicode.org/translation/number-patterns
*/
- public function getAccountingCurrencyPattern()
+ public function getAccountingCurrencyPattern(): string
{
return $this->accountingCurrencyPattern;
}
@@ -235,7 +235,7 @@ final class NumberFormat
*
* @return string
*/
- public function getNumberingSystem()
+ public function getNumberingSystem(): string
{
return $this->numberingSystem;
}
@@ -245,7 +245,7 @@ final class NumberFormat
*
* @return string
*/
- public function getDecimalSeparator()
+ public function getDecimalSeparator(): string
{
return $this->decimalSeparator;
}
@@ -255,7 +255,7 @@ final class NumberFormat
*
* @return string
*/
- public function getDecimalCurrencySeparator()
+ public function getDecimalCurrencySeparator(): string
{
return $this->decimalCurrencySeparator;
}
@@ -265,7 +265,7 @@ final class NumberFormat
*
* @return string
*/
- public function getGroupingSeparator()
+ public function getGroupingSeparator(): string
{
return $this->groupingSeparator;
}
@@ -275,7 +275,7 @@ final class NumberFormat
*
* @return string
*/
- public function getGroupingCurrencySeparator()
+ public function getGroupingCurrencySeparator(): string
{
return $this->groupingCurrencySeparator;
}
@@ -285,7 +285,7 @@ final class NumberFormat
*
* @return string
*/
- public function getPlusSign()
+ public function getPlusSign(): string
{
return $this->plusSign;
}
@@ -295,7 +295,7 @@ final class NumberFormat
*
* @return string
*/
- public function getMinusSign()
+ public function getMinusSign(): string
{
return $this->minusSign;
}
@@ -305,7 +305,7 @@ final class NumberFormat
*
* @return string
*/
- public function getPercentSign()
+ public function getPercentSign(): string
{
return $this->percentSign;
}
diff --git a/vendor/commerceguys/intl/src/NumberFormat/NumberFormatRepository.php b/vendor/commerceguys/intl/src/NumberFormat/NumberFormatRepository.php
index 59647616f..baedf2622 100644
--- a/vendor/commerceguys/intl/src/NumberFormat/NumberFormatRepository.php
+++ b/vendor/commerceguys/intl/src/NumberFormat/NumberFormatRepository.php
@@ -14,14 +14,14 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
*
* @var string
*/
- protected $fallbackLocale;
+ protected string $fallbackLocale;
/**
* Creates a NumberFormatRepository instance.
*
* @param string $fallbackLocale The fallback locale. Defaults to 'en'.
*/
- public function __construct($fallbackLocale = 'en')
+ public function __construct(string $fallbackLocale = 'en')
{
$this->fallbackLocale = $fallbackLocale;
}
@@ -29,7 +29,7 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
/**
* {@inheritdoc}
*/
- public function get($locale)
+ public function get(string $locale): NumberFormat
{
$definitions = $this->getDefinitions();
$availableLocales = array_keys($definitions);
@@ -47,7 +47,7 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
*
* @return array The processed definition.
*/
- protected function processDefinition($locale, array $definition)
+ protected function processDefinition(string $locale, array $definition)
{
$definition['locale'] = $locale;
// The generation script strips all keys that have the same values
@@ -66,17 +66,14 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
* @return array
* The number format definitions, keyed by locale.
*/
- protected function getDefinitions()
+ protected function getDefinitions(): array
{
return [
'af' => [
'decimal_separator' => ',',
'grouping_separator' => ' ',
],
- 'ann' => [
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
- ],
+ 'am' => [],
'ar' => [
'numbering_system' => 'arab',
'currency_pattern' => '‏#,##0.00 ¤',
@@ -143,24 +140,12 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'percent_pattern' => '#,##,##0%',
'currency_pattern' => '¤ #,##,##0.00',
],
- 'ast' => [
- 'currency_pattern' => '#,##0.00 ¤',
- 'accounting_currency_pattern' => '#,##0.00 ¤',
- 'decimal_separator' => ',',
- 'grouping_separator' => '.',
- ],
'az' => [
'currency_pattern' => '#,##0.00 ¤',
'accounting_currency_pattern' => '#,##0.00 ¤',
'decimal_separator' => ',',
'grouping_separator' => '.',
],
- 'az-Cyrl' => [
- 'currency_pattern' => '#,##0.00 ¤',
- 'accounting_currency_pattern' => '#,##0.00 ¤',
- 'decimal_separator' => ',',
- 'grouping_separator' => '.',
- ],
'be' => [
'percent_pattern' => '#,##0 %',
'currency_pattern' => '#,##0.00 ¤',
@@ -174,15 +159,6 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'decimal_separator' => ',',
'grouping_separator' => ' ',
],
- 'bgc' => [
- 'numbering_system' => 'deva',
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
- ],
- 'bho' => [
- 'numbering_system' => 'deva',
- 'accounting_currency_pattern' => '¤#,##0.00',
- ],
'bn' => [
'numbering_system' => 'beng',
'decimal_pattern' => '#,##,##0.###',
@@ -195,23 +171,7 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'currency_pattern' => '¤#,##,##0.00',
'accounting_currency_pattern' => '¤#,##,##0.00;(¤#,##,##0.00)',
],
- 'bo' => [
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
- ],
- 'brx' => [
- 'decimal_pattern' => '#,##,##0.###',
- 'percent_pattern' => '#,##,##0%',
- 'currency_pattern' => '¤ #,##,##0.00',
- ],
'bs' => [
- 'percent_pattern' => '#,##0 %',
- 'currency_pattern' => '#,##0.00 ¤',
- 'accounting_currency_pattern' => '#,##0.00 ¤',
- 'decimal_separator' => ',',
- 'grouping_separator' => '.',
- ],
- 'bs-Cyrl' => [
'currency_pattern' => '#,##0.00 ¤',
'accounting_currency_pattern' => '#,##0.00 ¤',
'decimal_separator' => ',',
@@ -224,11 +184,7 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'decimal_separator' => ',',
'grouping_separator' => '.',
],
- 'ce' => [
- 'percent_pattern' => '#,##0 %',
- 'currency_pattern' => '#,##0.00 ¤',
- 'accounting_currency_pattern' => '#,##0.00 ¤',
- ],
+ 'chr' => [],
'cs' => [
'percent_pattern' => '#,##0 %',
'currency_pattern' => '#,##0.00 ¤',
@@ -236,13 +192,6 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'decimal_separator' => ',',
'grouping_separator' => ' ',
],
- 'cv' => [
- 'percent_pattern' => '#,##0 %',
- 'currency_pattern' => '#,##0.00 ¤',
- 'accounting_currency_pattern' => '#,##0.00 ¤',
- 'decimal_separator' => ',',
- 'grouping_separator' => ' ',
- ],
'cy' => [],
'da' => [
'percent_pattern' => '#,##0 %',
@@ -261,29 +210,27 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'de-AT' => [
'percent_pattern' => '#,##0 %',
'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '#,##0.00 ¤',
+ 'accounting_currency_pattern' => '¤ #,##0.00',
'decimal_separator' => ',',
'grouping_separator' => ' ',
'grouping_currency_separator' => '.',
],
'de-CH' => [
'currency_pattern' => '¤ #,##0.00;¤-#,##0.00',
- 'accounting_currency_pattern' => '#,##0.00 ¤',
+ 'accounting_currency_pattern' => '¤ #,##0.00;¤-#,##0.00',
'grouping_separator' => '’',
],
'de-LI' => [
'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '#,##0.00 ¤',
+ 'accounting_currency_pattern' => '¤ #,##0.00',
'grouping_separator' => '’',
],
- 'doi' => [
- 'accounting_currency_pattern' => '¤#,##0.00',
- ],
- 'dz' => [
- 'decimal_pattern' => '#,##,##0.###',
- 'percent_pattern' => '#,##,##0 %',
- 'currency_pattern' => '¤#,##,##0.00',
- 'accounting_currency_pattern' => '¤#,##,##0.00',
+ 'dsb' => [
+ 'percent_pattern' => '#,##0 %',
+ 'currency_pattern' => '#,##0.00 ¤',
+ 'accounting_currency_pattern' => '#,##0.00 ¤',
+ 'decimal_separator' => ',',
+ 'grouping_separator' => '.',
],
'el' => [
'currency_pattern' => '#,##0.00 ¤',
@@ -341,6 +288,10 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'decimal_separator' => ',',
'grouping_separator' => ' ',
],
+ 'en-ID' => [
+ 'decimal_separator' => ',',
+ 'grouping_separator' => '.',
+ ],
'en-IN' => [
'decimal_pattern' => '#,##,##0.###',
'percent_pattern' => '#,##,##0%',
@@ -369,10 +320,6 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'decimal_separator' => ',',
'grouping_separator' => '.',
],
- 'en-ZA' => [
- 'decimal_separator' => ',',
- 'grouping_separator' => ' ',
- ],
'es' => [
'percent_pattern' => '#,##0 %',
'currency_pattern' => '#,##0.00 ¤',
@@ -381,84 +328,68 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'grouping_separator' => '.',
],
'es-419' => [
- 'percent_pattern' => '#,##0 %',
'accounting_currency_pattern' => '¤#,##0.00',
],
'es-AR' => [
- 'percent_pattern' => '#,##0 %',
'currency_pattern' => '¤ #,##0.00',
'accounting_currency_pattern' => '¤ #,##0.00;(¤ #,##0.00)',
'decimal_separator' => ',',
'grouping_separator' => '.',
],
'es-BO' => [
- 'percent_pattern' => '#,##0 %',
'accounting_currency_pattern' => '¤#,##0.00',
'decimal_separator' => ',',
'grouping_separator' => '.',
],
'es-CL' => [
- 'percent_pattern' => '#,##0 %',
'currency_pattern' => '¤#,##0.00;¤-#,##0.00',
- 'accounting_currency_pattern' => '¤#,##0.00',
+ 'accounting_currency_pattern' => '¤#,##0.00;¤-#,##0.00',
'decimal_separator' => ',',
'grouping_separator' => '.',
],
'es-CO' => [
- 'percent_pattern' => '#,##0 %',
'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤#,##0.00',
+ 'accounting_currency_pattern' => '¤ #,##0.00',
'decimal_separator' => ',',
'grouping_separator' => '.',
],
'es-CR' => [
- 'percent_pattern' => '#,##0 %',
'accounting_currency_pattern' => '¤#,##0.00',
'decimal_separator' => ',',
'grouping_separator' => ' ',
],
- 'es-DO' => [
- 'percent_pattern' => '#,##0 %',
- ],
+ 'es-DO' => [],
'es-EC' => [
- 'percent_pattern' => '#,##0 %',
'currency_pattern' => '¤#,##0.00;¤-#,##0.00',
- 'accounting_currency_pattern' => '¤#,##0.00',
+ 'accounting_currency_pattern' => '¤#,##0.00;¤-#,##0.00',
'decimal_separator' => ',',
'grouping_separator' => '.',
],
'es-GQ' => [
'percent_pattern' => '#,##0 %',
- 'accounting_currency_pattern' => '#,##0.00 ¤',
+ 'accounting_currency_pattern' => '¤#,##0.00',
'decimal_separator' => ',',
'grouping_separator' => '.',
],
- 'es-MX' => [
- 'accounting_currency_pattern' => '¤#,##0.00',
- ],
'es-PE' => [
- 'percent_pattern' => '#,##0 %',
'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤#,##0.00',
+ 'accounting_currency_pattern' => '¤ #,##0.00',
],
'es-PY' => [
- 'percent_pattern' => '#,##0 %',
'currency_pattern' => '¤ #,##0.00;¤ -#,##0.00',
- 'accounting_currency_pattern' => '¤#,##0.00',
+ 'accounting_currency_pattern' => '¤ #,##0.00;¤ -#,##0.00',
'decimal_separator' => ',',
'grouping_separator' => '.',
],
'es-UY' => [
- 'percent_pattern' => '#,##0 %',
'currency_pattern' => '¤ #,##0.00',
'accounting_currency_pattern' => '¤ #,##0.00;(¤ #,##0.00)',
'decimal_separator' => ',',
'grouping_separator' => '.',
],
'es-VE' => [
- 'percent_pattern' => '#,##0 %',
'currency_pattern' => '¤#,##0.00;¤-#,##0.00',
- 'accounting_currency_pattern' => '¤#,##0.00',
+ 'accounting_currency_pattern' => '¤#,##0.00;¤-#,##0.00',
'decimal_separator' => ',',
'grouping_separator' => '.',
],
@@ -541,10 +472,6 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'decimal_separator' => ',',
'grouping_separator' => '.',
],
- 'frr' => [
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
- ],
'ga' => [],
'gd' => [],
'gl' => [
@@ -554,13 +481,6 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'decimal_separator' => ',',
'grouping_separator' => '.',
],
- 'gsw' => [
- 'percent_pattern' => '#,##0 %',
- 'currency_pattern' => '#,##0.00 ¤',
- 'accounting_currency_pattern' => '#,##0.00 ¤',
- 'grouping_separator' => '’',
- 'minus_sign' => '−',
- ],
'gu' => [
'decimal_pattern' => '#,##,##0.###',
'percent_pattern' => '#,##,##0%',
@@ -593,6 +513,13 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'grouping_separator' => '.',
'minus_sign' => '−',
],
+ 'hsb' => [
+ 'percent_pattern' => '#,##0 %',
+ 'currency_pattern' => '#,##0.00 ¤',
+ 'accounting_currency_pattern' => '#,##0.00 ¤',
+ 'decimal_separator' => ',',
+ 'grouping_separator' => '.',
+ ],
'hu' => [
'currency_pattern' => '#,##0.00 ¤',
'accounting_currency_pattern' => '#,##0.00 ¤',
@@ -610,6 +537,7 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'decimal_separator' => ',',
'grouping_separator' => '.',
],
+ 'ig' => [],
'is' => [
'currency_pattern' => '#,##0.00 ¤',
'accounting_currency_pattern' => '#,##0.00 ¤',
@@ -624,7 +552,7 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
],
'it-CH' => [
'currency_pattern' => '¤ #,##0.00;¤-#,##0.00',
- 'accounting_currency_pattern' => '#,##0.00 ¤',
+ 'accounting_currency_pattern' => '¤ #,##0.00;¤-#,##0.00',
'grouping_separator' => '’',
],
'ja' => [],
@@ -643,45 +571,17 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'km' => [
'currency_pattern' => '#,##0.00¤',
'accounting_currency_pattern' => '#,##0.00¤;(#,##0.00¤)',
- 'decimal_separator' => ',',
- 'grouping_separator' => '.',
],
'ko' => [],
'kok' => [
'currency_pattern' => '¤ #,##0.00',
],
- 'ks' => [
- 'numbering_system' => 'arabext',
- 'accounting_currency_pattern' => '¤#,##0.00',
- 'decimal_separator' => '٫',
- 'grouping_separator' => '٬',
- 'plus_sign' => '‎+‎',
- 'minus_sign' => '‎-‎',
- 'percent_sign' => '٪',
- ],
- 'ks-Deva' => [
- 'accounting_currency_pattern' => '¤#,##0.00',
- ],
- 'ku' => [
- 'percent_pattern' => '%#,##0',
- 'currency_pattern' => '#,##0.00 ¤',
- 'accounting_currency_pattern' => '#,##0.00 ¤;(#,##0.00 ¤)',
- 'decimal_separator' => ',',
- 'grouping_separator' => '.',
- ],
'ky' => [
'currency_pattern' => '#,##0.00 ¤',
'accounting_currency_pattern' => '#,##0.00 ¤',
'decimal_separator' => ',',
'grouping_separator' => ' ',
],
- 'lb' => [
- 'percent_pattern' => '#,##0 %',
- 'currency_pattern' => '#,##0.00 ¤',
- 'accounting_currency_pattern' => '#,##0.00 ¤',
- 'decimal_separator' => ',',
- 'grouping_separator' => '.',
- ],
'lo' => [
'currency_pattern' => '¤#,##0.00;¤-#,##0.00',
'accounting_currency_pattern' => '¤#,##0.00;¤-#,##0.00',
@@ -702,18 +602,6 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'decimal_separator' => ',',
'grouping_separator' => ' ',
],
- 'mai' => [
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
- ],
- 'mdf' => [
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
- ],
- 'mg' => [
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤#,##0.00',
- ],
'mk' => [
'percent_pattern' => '#,##0 %',
'currency_pattern' => '#,##0.00 ¤',
@@ -721,18 +609,10 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'decimal_separator' => ',',
'grouping_separator' => '.',
],
- 'ml' => [
- 'decimal_pattern' => '#,##,##0.###',
- ],
'mn' => [
'currency_pattern' => '¤ #,##0.00',
'accounting_currency_pattern' => '¤ #,##0.00',
],
- 'mni' => [
- 'numbering_system' => 'beng',
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
- ],
'mr' => [
'numbering_system' => 'deva',
'decimal_pattern' => '#,##,##0.###',
@@ -748,9 +628,6 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'decimal_separator' => ',',
'grouping_separator' => '.',
],
- 'mt' => [
- 'accounting_currency_pattern' => '¤#,##0.00',
- ],
'my' => [
'currency_pattern' => '#,##0.00 ¤',
'accounting_currency_pattern' => '¤ #,##0.00',
@@ -770,7 +647,7 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
],
'nn' => [
'percent_pattern' => '#,##0 %',
- 'currency_pattern' => '#,##0.00 ¤',
+ 'currency_pattern' => '#,##0.00 ¤;-#,##0.00 ¤',
'accounting_currency_pattern' => '#,##0.00 ¤',
'decimal_separator' => ',',
'grouping_separator' => ' ',
@@ -778,15 +655,14 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
],
'no' => [
'percent_pattern' => '#,##0 %',
- 'currency_pattern' => '¤ #,##0.00;¤ -#,##0.00',
+ 'currency_pattern' => '#,##0.00 ¤;-#,##0.00 ¤',
'accounting_currency_pattern' => '¤ #,##0.00;(¤ #,##0.00)',
'decimal_separator' => ',',
'grouping_separator' => ' ',
'minus_sign' => '−',
],
- 'oc' => [
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
+ 'or' => [
+ 'decimal_pattern' => '#,##,##0.###',
],
'pa' => [
'decimal_pattern' => '#,##,##0.###',
@@ -794,20 +670,6 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'currency_pattern' => '¤#,##,##0.00',
'accounting_currency_pattern' => '¤ #,##0.00',
],
- 'pa-Arab' => [
- 'numbering_system' => 'arabext',
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
- 'decimal_separator' => '٫',
- 'grouping_separator' => '٬',
- 'plus_sign' => '‎+‎',
- 'minus_sign' => '‎-‎',
- 'percent_sign' => '٪',
- ],
- 'pis' => [
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
- ],
'pl' => [
'currency_pattern' => '#,##0.00 ¤',
'accounting_currency_pattern' => '#,##0.00 ¤;(#,##0.00 ¤)',
@@ -835,18 +697,6 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'decimal_separator' => ',',
'grouping_separator' => ' ',
],
- 'raj' => [
- 'numbering_system' => 'deva',
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
- ],
- 'rn' => [
- 'percent_pattern' => '#,##0 %',
- 'currency_pattern' => '#,##0.00¤',
- 'accounting_currency_pattern' => '#,##0.00¤',
- 'decimal_separator' => ',',
- 'grouping_separator' => '.',
- ],
'ro' => [
'percent_pattern' => '#,##0 %',
'currency_pattern' => '#,##0.00 ¤',
@@ -861,30 +711,6 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'decimal_separator' => ',',
'grouping_separator' => ' ',
],
- 'rw' => [
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
- 'decimal_separator' => ',',
- 'grouping_separator' => '.',
- ],
- 'sat' => [
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
- ],
- 'sd' => [
- 'numbering_system' => 'arab',
- 'currency_pattern' => '#,##0.00 ¤',
- 'accounting_currency_pattern' => '#,##0.00 ¤',
- 'decimal_separator' => '٫',
- 'grouping_separator' => '٬',
- 'plus_sign' => '؜+',
- 'minus_sign' => '؜-',
- 'percent_sign' => '٪؜',
- ],
- 'sd-Deva' => [
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
- ],
'si' => [],
'sk' => [
'percent_pattern' => '#,##0 %',
@@ -901,10 +727,6 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'grouping_separator' => '.',
'minus_sign' => '−',
],
- 'sms' => [
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
- ],
'so' => [],
'sq' => [
'currency_pattern' => '#,##0.00 ¤',
@@ -957,12 +779,6 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'decimal_pattern' => '#,##,##0.###',
'currency_pattern' => '¤#,##,##0.00',
],
- 'tg' => [
- 'currency_pattern' => '#,##0.00 ¤',
- 'accounting_currency_pattern' => '#,##0.00 ¤',
- 'decimal_separator' => ',',
- 'grouping_separator' => ' ',
- ],
'th' => [],
'tk' => [
'percent_pattern' => '#,##0 %',
@@ -971,14 +787,6 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'decimal_separator' => ',',
'grouping_separator' => ' ',
],
- 'to' => [
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
- ],
- 'tok' => [
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
- ],
'tr' => [
'percent_pattern' => '%#,##0',
'decimal_separator' => ',',
@@ -1007,22 +815,6 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'decimal_separator' => ',',
'grouping_separator' => ' ',
],
- 'uz-Arab' => [
- 'numbering_system' => 'arabext',
- 'currency_pattern' => '¤ #,##0.00',
- 'accounting_currency_pattern' => '¤ #,##0.00',
- 'decimal_separator' => '٫',
- 'grouping_separator' => '٬',
- 'plus_sign' => '‎+‎',
- 'minus_sign' => '‎-‎',
- 'percent_sign' => '٪',
- ],
- 'uz-Cyrl' => [
- 'currency_pattern' => '#,##0.00 ¤',
- 'accounting_currency_pattern' => '#,##0.00 ¤',
- 'decimal_separator' => ',',
- 'grouping_separator' => ' ',
- ],
'vi' => [
'currency_pattern' => '#,##0.00 ¤',
'accounting_currency_pattern' => '#,##0.00 ¤',
@@ -1033,6 +825,7 @@ class NumberFormatRepository implements NumberFormatRepositoryInterface
'yue-Hans' => [],
'zh' => [],
'zh-Hant' => [],
+ 'zu' => [],
];
}
}
diff --git a/vendor/commerceguys/intl/src/NumberFormat/NumberFormatRepositoryInterface.php b/vendor/commerceguys/intl/src/NumberFormat/NumberFormatRepositoryInterface.php
index b8f7facc4..5675c941e 100644
--- a/vendor/commerceguys/intl/src/NumberFormat/NumberFormatRepositoryInterface.php
+++ b/vendor/commerceguys/intl/src/NumberFormat/NumberFormatRepositoryInterface.php
@@ -14,5 +14,5 @@ interface NumberFormatRepositoryInterface
*
* @return NumberFormat
*/
- public function get($locale);
+ public function get(string $locale): NumberFormat;
}