From 4f1a6bd1ff672dccad002b7a02a8f4ea48875ad6 Mon Sep 17 00:00:00 2001 From: Christian Heel <66922325+heelc29@users.noreply.github.com> Date: Sat, 27 Sep 2025 13:57:02 +0200 Subject: [PATCH] [3.x][PHP8.5] Passing a string which is not a single byte to ord() is deprecated https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_passing_string_which_are_not_one_byte_long_to_ord --- src/phputf8/ord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phputf8/ord.php b/src/phputf8/ord.php index f35afdb6..e3edc3d6 100644 --- a/src/phputf8/ord.php +++ b/src/phputf8/ord.php @@ -21,7 +21,7 @@ */ function utf8_ord($chr) { - $ord0 = ord($chr); + $ord0 = ord($chr[0]); if ($ord0 >= 0 && $ord0 <= 127) { return $ord0;