Skip to content

Update deprecation message for incompatible float to int conversion #7095

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

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

Ayesh
Copy link
Member

@Ayesh Ayesh commented Jun 3, 2021

Updates the deprecation message for implicit incompatible float to int conversion from:

Implicit conversion from non-compatible

to

Implicit conversion from incompatible

Related: #6661

@Ayesh
Copy link
Member Author

Ayesh commented Jun 3, 2021

Suggested because incompatible is used more widely than non-compatible (ngram)

@Ayesh Ayesh marked this pull request as ready for review June 3, 2021 17:42
@cmb69
Copy link
Member

cmb69 commented Jun 3, 2021

Thank you! That makes sense to me; @Girgias, what do you think?

@Girgias
Copy link
Member

Girgias commented Jun 3, 2021

Thank you! That makes sense to me; @Girgias, what do you think?

We talked about this on the original PR, so this is good to go on my end. :-)

@Ayesh Ayesh force-pushed the message-float-int-deprecation branch from 027ea9f to 97cda67 Compare June 6, 2021 12:08
Updates the deprecation message for implicit incompatible float to int conversion from:

```
Implicit conversion from non-compatible float %.*H to int in %s on line %d
```

to

```
Implicit conversion from float %.*H to int loses precision in %s on line %d
```

Related: php#6661
@Ayesh Ayesh force-pushed the message-float-int-deprecation branch from 97cda67 to 03e2399 Compare June 6, 2021 13:11
@nikic nikic merged commit b8e380a into php:master Jun 7, 2021
@Ayesh Ayesh deleted the message-float-int-deprecation branch March 12, 2024 16:50
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 this pull request may close these issues.

5 participants