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 implicit cast deprecation in php8.1 #2210

Closed
wants to merge 1 commit into from
Closed

fix implicit cast deprecation in php8.1 #2210

wants to merge 1 commit into from

Conversation

brainfoolong
Copy link
Contributor

This fixes a php8.1 deprecation issue. Behaviour has not changed, as implicit cast exist at least since PHP8.0, but previously not thrown a deprecation error.

This pull only contains the fix without changes to documentation, changelogs or unit test. Hope this can be done by someone else, as i don't have time to invest more time here.

This is:

- [x] a bugfix

Checklist:

Why this change is needed?

Starting with PHP8.1, implicit casts from float to int/string is now deprecated.

This fixes a php8.1 deprecation issue. Behaviour has not changed, as implicit cast exist at least since PHP8.0, but previously not thrown a deprecation error.
Copy link
Member

@MarkBaker MarkBaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this still an issue? It should already have been resolved by the changes in PR #2191

@brainfoolong
Copy link
Contributor Author

Sry, didn't saw this other PR. Yes, the other PR should also fix the issue. Thx

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

Successfully merging this pull request may close these issues.

None yet

2 participants