8000 [Intl] fix #39100 · symfony/symfony@6f693c8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f693c8

Browse files
committed
[Intl] fix #39100
locale_parse returns null if `$locale` length is greater than `INTL_MAX_LOCALE_LEN`. throw InvalidArgumentException if $locale length is greater than INTL_MAX_LOCALE_LEN. patch file to fix coding standards
1 parent 57935b9 commit 6f693c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Intl/Locale.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public static function getFallback(string $locale): ?string
7070
if (\function_exists('locale_parse')) {
7171
if (null === $localeSubTags = locale_parse($locale)) {
7272
if (\defined('INTL_MAX_LOCALE_LEN')) {
73-
$message = sprintf('The length of $locale must be less than %s', INTL_MAX_LOCALE_LEN);
73+
$message = sprintf('The length of $locale must be less than %s', \INTL_MAX_LOCALE_LEN);
7474
}
7575

7676
throw new \InvalidArgumentException($message ?? '');

0 commit comments

Comments
 (0)
0