PHP 8.2 throws deprecation notice on utf8_encode and utf8_decode functions. Strings::length used utf8_decode to determine correct length of string - using mb_strlen, or natively using utf8_decode. I refactored this function to use mbstring or iconv extensions to determine correct length.
User can no longer run Strings::length() function without at least one of these extensions, however since they are super common extensions I dont see this as s problem nowadays
PHP 8.2 throws deprecation notice on
utf8_encode
andutf8_decode
functions.Strings::length
usedutf8_decode
to determine correct length of string - usingmb_strlen
, or natively usingutf8_decode
. I refactored this function to usembstring
oriconv
extensions to determine correct length.User can no longer run
Strings::length()
function without at least one of these extensions, however since they are super common extensions I dont see this as s problem nowadays