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

PHP 8.2 Add utf8_decode -> mb_convert_encoding #7658

Closed
samsonasik opened this issue Dec 13, 2022 · 0 comments · Fixed by rectorphp/rector-src#3195
Closed

PHP 8.2 Add utf8_decode -> mb_convert_encoding #7658

samsonasik opened this issue Dec 13, 2022 · 0 comments · Fixed by rectorphp/rector-src#3195
Labels

Comments

@samsonasik
Copy link
Member

Feature Request

New rule seems needed to update deprecated uf8_decode to mb_convert_encoding

Diff

-$diff = utf8_decode($value);
+$diff = mb_convert_encoding($value, 'ISO-8859-1');

Ref

Demo compare equal result : https://3v4l.org/ZuZl5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant