Commit aa85520
committed
unicodeTrim: Fix PHP 8.2 deprecation
mbstring extension in PHP 8.2 deprecates `HTML-ENTITIES` encoding:
https://php.watch/versions/8.2/mbstring-qprint-base64-uuencode-html-entities-deprecated
However, there is no need to use it to the UTF-8 representation of NBSP, one can just directly use `\u{0a}` (or `\xc2\x0a` for PHP < 7.0).
Or, even better, we can enable `PCRE_UTF8` mode:
https://www.php.net/manual/en/reference.pcre.pattern.modifiers.php
It is supposed to be available since PHP 5.1:
https://www.phpbb.com/community/viewtopic.php?t=7335151 parent a2c7c44 commit aa85520
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | | - | |
| 114 | + | |
117 | 115 | | |
118 | 116 | | |
119 | 117 | | |
| |||
0 commit comments