On 04.03.21 14:07, G. P. B. wrote:
This new version of the RFC can be found on the wiki: [2] https://wiki.php.net/rfc/implicit-float-int-deprecate
I like the RFC, but I think the diagnostic messages will be hard to understand when they come up in real scripts, especially because they can be platform-dependent and can have two different reasons, and "non-compatible" is not self-explanatory. Giving a very specific message would be more helpful for people experiencing these errors, something like: * Implicit conversion to int from float(-string) with fractional part * Implicit conversion to int from float(-string) which is outside of int range (=> maybe also mentioning the range of the platform) (Maybe there are additional possible errors to consider, but those two seem two obvious possibilities)