[wp-trac] [WordPress Trac] #64238: PHPStan code quality improvements for 7.0
WordPress Trac
noreply at wordpress.org
Fri Mar 6 23:19:55 UTC 2026
#64238: PHPStan code quality improvements for 7.0
--------------------------------------+-------------------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 7.0
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: coding-standards
--------------------------------------+-------------------------------
Comment (by SergeyBiryukov):
In [changeset:"61859" 61859]:
{{{
#!CommitTicketReference repository="" revision="61859"
Code Quality: Make sure `$comment_id` is defined in `wp-
admin/comment.php`.
This avoids a `variable.undefined` warning at PHPStan level 3.
Follow-up to [48958].
Props huzaifaalmesbah, westonruter, SergeyBiryukov.
See #64238.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64238#comment:104>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list