[wp-trac] [WordPress Trac] #63268: PHPStan code quality improvements for 6.9
WordPress Trac
noreply at wordpress.org
Tue Apr 22 15:33:54 UTC 2025
#63268: PHPStan code quality improvements for 6.9
--------------------------+-------------------------------
Reporter: justlevine | Owner: SergeyBiryukov
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.9
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: coding-standards
--------------------------+-------------------------------
Comment (by SergeyBiryukov):
In [changeset:"60179" 60179]:
{{{
#!CommitTicketReference repository="" revision="60179"
Coding Standards: Explicitly return `null` in
`_wp_filter_build_unique_id()`.
This commit updates the function to explicitly return `null` if a valid
`$callback` is not passed. Previously, the function could return `void`,
but was typed as only returning a string.
Follow-up to [5936], [11409], [12090], [46220], [46801], [50807], [52300].
Props justlevine.
See #63268.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63268#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list