[wp-trac] [WordPress Trac] #64238: PHPStan code quality improvements for 7.0
WordPress Trac
noreply at wordpress.org
Sun Nov 23 05:37:39 UTC 2025
#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 westonruter):
In [changeset:"61281" 61281]:
{{{
#!CommitTicketReference repository="" revision="61281"
Docs: Explicitly return `null` when documented instead of `void` in `link-
template.php` functions.
The phpdoc `@return` tags for these functions indicate they may return
`null`. This also fixes "Missing return argument" warnings which an IDE
may also complain about.
Developed in https://github.com/WordPress/wordpress-develop/pull/8955
Props justlevine.
See #64238.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64238#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list