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

Remove deprecated function usage #17

Merged
merged 2 commits into from
Nov 15, 2023
Merged

Conversation

sf-cg
Copy link
Contributor

@sf-cg sf-cg commented Nov 8, 2023

utf8_encode is deprecated from PHP 8.2 onwards, so we'll remove it to get rid of warnings and be better prepared for future PHP releases.

It's replaced with mbstring, which I've added to composer as a requirement to make sure consumers will not pick up this version of the package if they will not be able to run the newly changed line.

@sf-cg
Copy link
Contributor Author

sf-cg commented Nov 8, 2023

Will also make the tag/release as 2.1.0 since it's potentially something breaking (though the composer should block an update to it), best to make it clear it does have some minor possibly breaking change.

@sf-cg sf-cg changed the title Remove utf8_encode Remove deprecated function usage Nov 8, 2023
@sf-cg
Copy link
Contributor Author

sf-cg commented Nov 8, 2023

I've also now added an extension for phpstan that will report deprecated functions to make sure we keep things upto date moving forward. It noted one from guzzle which I've updated as suggested by guzzle.

@specialtactics
Copy link
Member

Looks good to me @sf-cg

@sf-cg sf-cg merged commit 79a8c0f into master Nov 15, 2023
32 checks passed
@sf-cg sf-cg deleted the chore/remove-deprecated-utf8-encode branch November 15, 2023 22:56
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

Successfully merging this pull request may close these issues.

3 participants