Skip to content

Commit 89098b7

Browse files
Merge branch '7.4' into 8.0
* 7.4: fix package name in deprecation message [Intl] Fix locale validator when canonicalize is true Update GitHub PR template [FrameworkBundle] also deprecate the internal rate limiter factory alias also deprecate the internal rate limiter factory alias [FrameworkBundle] Allow using their name without added suffix when using #[Target] for custom services [String] Leverage grapheme_str_split() [Notifier] Update fake SMS transports to use contracts event dispatcher. [Console] Cleanup test [Security] Document `FirewallListenerInterface` as a firewall listener type [VarDumper] Remove duplicate default caster for Socket WS fix Remove unused and non-existent Factory attribute use Move property accessor phpdoc to interface fix: twigphp/Twig/issues/4647
2 parents 793b312 + 4afdf19 commit 89098b7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

AbstractUnicodeString.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public function replaceMatches(string $fromRegexp, string|callable $to): static
360360
public function reverse(): static
361361
{
362362
$str = clone $this;
363-
$str->string = implode('', array_reverse(preg_split('/(\X)/u', $str->string, -1, \PREG_SPLIT_DELIM_CAPTURE | \PREG_SPLIT_NO_EMPTY)));
363+
$str->string = implode('', array_reverse(grapheme_str_split($str->string)));
364364

365365
return $str;
366366
}

Tests/AbstractUnicodeTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ public static function provideReverse()
751751
[
752752
['äuß⭐erst', 'tsre⭐ßuä'],
753753
['漢字ーユニコードéèΣσς', 'ςσΣèéドーコニユー字漢'],
754-
['नमस्ते', 'तेस्मन'],
754+
// ['नमस्ते', 'तेस्मन'], this case requires a version of intl that supports Unicode 15.1
755755
]
756756
);
757757
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require": {
1919
"php": ">=8.4",
2020
"symfony/polyfill-ctype": "^1.8",
21-
"symfony/polyfill-intl-grapheme": "^1.0",
21+
"symfony/polyfill-intl-grapheme": "^1.33",
2222
"symfony/polyfill-intl-normalizer": "^1.0",
2323
"symfony/polyfill-mbstring": "^1.0"
2424
},

0 commit comments

Comments
 (0)