Skip to content

Commit cea52f7

Browse files
jrfnlyoukidearitai
andauthored
PHP 8.5 | UPGRADING: fix entry about new grapheme $locale parameter (php#20239)
* PHP 8.5 | UPGRADING: fix entry about new grapheme $locale parameter 1. The `grapheme_levenshtein()` function is new to PHP 8.5, so the `$locale` parameter being added does not "change" the function (in the context of changes between PHP 8.4 and 8.5). 2. The `grapheme_substr()` function has also been given the new `$locale` parameter, but was not listed in the changelog entry. Refs: * https://wiki.php.net/rfc/grapheme_levenshtein * php@bdcea11 * https://wiki.php.net/rfc/grapheme_add_locale_for_case_insensitive * php@ad75c26 * NEWS: Add missing parentheses after `grapheme_substr` Co-authored-by: tekimen <[email protected]>
1 parent 3ac9efe commit cea52f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ PHP NEWS
217217

218218
- Intl:
219219
. Added grapheme_strpos(), grapheme_stripos(), grapheme_strrpos(),
220-
grapheme_strripos(), grapheme_strstr(), grapheme_stristr() and
220+
grapheme_strripos(), grapheme_substr(), grapheme_strstr(), grapheme_stristr() and
221221
grapheme_levenshtein() functions add $locale parameter (Yuya Hamada).
222222
. Fixed bug GH-11952 (Fix locale strings canonicalization for IntlDateFormatter
223223
and NumberFormatter). (alexandre-daubois)

UPGRADING

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,8 @@ PHP 8.5 UPGRADE NOTES
613613
have dropped the false from the return type union. Returning false
614614
was actually never possible.
615615
. grapheme_strpos(), grapheme_stripos(), grapheme_strrpos(),
616-
grapheme_strripos(), grapheme_strstr(), grapheme_stristr() and
617-
grapheme_levenshtein() functions add $locale parameter.
616+
grapheme_strripos(), grapheme_substr(), grapheme_strstr()
617+
and grapheme_stristr() functions add $locale parameter.
618618
RFC: https://wiki.php.net/rfc/grapheme_add_locale_for_case_insensitive
619619

620620
- LDAP:

0 commit comments

Comments
 (0)