Scalar type declarations use only a single name for each numeric type, but casts permit some variation. This RFC proposes to deprecate the variants that are not valid as type declarations for reasons of consistency.
The following cast forms will emit E_DEPRECATED
errors, with a schedule for removal to be agreed either during discussion of this RFC or in a subsequent RFC:
(integer) // use (int) (boolean) // use (bool) (double) // use (float) (real) // use (float)
The main reason for this is to help ensure that code is consistent and obviously readable.
Any code which uses these cast forms will now emit E_DEPRECATED
errors.
PHP 7.3
Yes/No, with a 2/3 majority required.
No implementation currently exists.
Links to external references, discussions or RFCs