text-diff
text-diff copied to clipboard
utf8_encode() deprecation
Hi!
First of all, thank you for your work!
As I'm using this package in my PHP 8.2 project, I'm getting this deprecation:
Function utf8_encode() is deprecated since 8.2, visit the php.net documentation for various alternatives in src/Diff.php line 237
If you want, I'd like to propose a solution with a PR which would solve this.
Please let me know!
Best regards,
Graftak
Hi @graftak, thanks for telling me :D
Feel free to make a PR, I would appreciate that very much. Otherwise I can have a look in the coming weeks between projects. I haven't run into the issue yet myself, but since I use the library in several applications, I am bound to come accross it sooner than later.
Leaving this here as relevant for the topic, as a number of possible replacements for utf8_encode() are mentioned:
https://php.watch/versions/8.2/utf8_encode-utf8_decode-deprecated