[wp-trac] [WordPress Trac] #64694: paginate_links(): @return uses void instead of null in union type
WordPress Trac
noreply at wordpress.org
Sun Feb 22 22:07:51 UTC 2026
#64694: paginate_links(): @return uses void instead of null in union type
--------------------------+------------------------------
Reporter: apermo | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by apermo):
Note: It might be even better to change the behavior to return an empty
string, instead of just returning `null`, but that would be a potentially
breaking change, this is the defensive version, just updating the current
behavior, so that PHPStan is able to correctly analyze the behavior.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64694#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list