Re: [RFC] Deprecations for PHP 8.6
| From: | Morgan | Date: | Wed, 24 Jun 2026 22:58:45 +0000 |
| Subject: | Re: [RFC] Deprecations for PHP 8.6 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-131522@lists.php.net to get a copy of this message | ||
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);