Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PHP 8.2 deprecations #60

Open
seanBlommaert opened this issue Jul 8, 2024 · 1 comment
Open

Fix PHP 8.2 deprecations #60

seanBlommaert opened this issue Jul 8, 2024 · 1 comment

Comments

@seanBlommaert
Copy link

Because of the misleading function names, lack of error messages and warnings, and the lack of support for character encodings other than ISO-8859-1, utf8_encode and utf8_decode functions are deprecated in PHP 8.2.

This is being used in \DaveChild\TextStatistics\Text::cleanText()

We can replace it with the code below, or maybe see if we can remove it?
$strText = mb_convert_encoding($strText, 'ISO-8859-1', mb_detect_encoding($strText));

@seanBlommaert
Copy link
Author

seanBlommaert commented Jul 8, 2024

I see there already is a PR for this: #56 (and more 8.2 deprecations).

@seanBlommaert seanBlommaert changed the title Function uft8_decode() is deprecated Fix PHP 8.2 deprecations Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant