[wp-trac] [WordPress Trac] #64047: PHP 8.5: NAN coercion warnings
WordPress Trac
noreply at wordpress.org
Mon Sep 29 18:40:11 UTC 2025
#64047: PHP 8.5: NAN coercion warnings
--------------------------------------------+------------------------------
Reporter: swissspidy | Owner: swissspidy
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.9
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: php85 has-patch has-unit-tests | Focuses: php-
| compatibility
--------------------------------------------+------------------------------
Changes (by swissspidy):
* owner: (none) => swissspidy
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"60811" 60811]:
{{{
#!CommitTicketReference repository="" revision="60811"
Code Modernization: Avoid NAN coercion/cast deprecation warnings.
Coercing `INF` or `NAN` to a string or casting to int is deprecated in PHP
8.5+.
This change addresses two occurrences in core where this was happening.
Props swissspidy.
Fixes #64047. See #63061.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64047#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list