[wp-trac] [WordPress Trac] #64898: PHPStan code quality improvements for 7.1
WordPress Trac
noreply at wordpress.org
Sun May 31 19:19:35 UTC 2026
#64898: PHPStan code quality improvements for 7.1
--------------------------------------+-------------------------------
Reporter: desrosj | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 7.1
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: coding-standards
--------------------------------------+-------------------------------
Comment (by westonruter):
In [changeset:"62437" 62437]:
{{{
#!CommitTicketReference repository="" revision="62437"
Privacy: Correct type of `WP_User_Request::$user_id` from `int` to `string
`/`numeric-string`.
Also adds `numeric-string` as richer PHPStan type to
`WP_Post::$post_author` and `WP_Post::$comment_count`.
Developed in https://github.com/WordPress/wordpress-develop/pull/12018.
Follow-up to r25086, r43011.
Props masteradhoc, desrosj, garrett-eclipse, johnbillion, westonruter,
apermo, SergeyBiryukov, TZ-Media, andizer, javorszky.
See #22324, #25092, #43443, #43985, #64898.
Fixes #44723.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64898#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list