On 2026-06-23 01:13, Gina P. Banyard wrote:

It is this time of year again where we proposed a list of deprecations to add 
in PHP 8.6:

https://wiki.php.net/rfc/deprecations_php_8_6

Regarding deprecating non-canonical type names:

It's a different category of problem (and a lot more difficult than just swapping out an alias), but gettype() returns "double" and "integer" for floats and ints (and "boolean" for bools).

A change would require users to write a translator wrapper around gettype that continues to output the old names and call that until they're able to replace all their uses of them:

$t = gettype($v);
return $t === 'integer' ? 'int' : ($t === 'double' ? 'float' : $t);

Reply via email to