[wp-trac] [WordPress Trac] #63061: Prepare for PHP 8.5

WordPress Trac noreply at wordpress.org
Mon Aug 25 13:08:44 UTC 2025


#63061: Prepare for PHP 8.5
-----------------------------+--------------------------------
 Reporter:  johnbillion      |       Owner:  (none)
     Type:  task (blessed)   |      Status:  new
 Priority:  normal           |   Milestone:  6.9
Component:  General          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  php85 has-patch  |     Focuses:  php-compatibility
-----------------------------+--------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"60659" 60659]:
 {{{
 #!CommitTicketReference repository="" revision="60659"
 Code Modernization: Replace non-canonical scalar type casts with canonical
 versions.

 PHP 8.5 deprecates four alternative scalar type names in favor of their
 canonical names:

 * `boolean` → `bool`
 * `double` → `float`
 * `integer` → `int`
 * `binary` → `string`

 References:
 * [https://php.watch/versions/8.5/boolean-double-integer-binary-casts-
 deprecated PHP.Watch: PHP 8.5: Non-canonical scalar type casts
 (boolean|double|integer|binary) deprecated]
 * [https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_non-
 standard_cast_names PHP RFC: Deprecations for PHP 8.5: Deprecate non-
 standard cast names]

 Follow-up to [1346], [11875].

 Props TobiasBg, swissspidy, SergeyBiryukov.
 See #63061.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63061#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list