Skip to content

Update deprecation message for incompatible float to int conversion - #7095

Merged
nikic merged 1 commit into
php:masterfrom
Ayesh:message-float-int-deprecation
Jun 7, 2021
Merged

nikic merged 1 commit into
php:masterfrom
Ayesh:message-float-int-deprecation

Conversation

@Ayesh

@Ayesh Ayesh commented Jun 3, 2021

Copy link
Copy Markdown
Member

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

Ayesh commented Jun 3, 2021

Copy link
Copy Markdown
Member Author

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

cmb69 commented Jun 3, 2021

Copy link
Copy Markdown
Member

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

@Girgias

Girgias commented Jun 3, 2021

Copy link
Copy Markdown
Member

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. :-)

Comment thread Zend/tests/array_offset.phpt Resolved
@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