[wp-trac] [WordPress Trac] #63268: PHPStan code quality improvements for 6.9

WordPress Trac noreply at wordpress.org
Sat Apr 12 22:40:34 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:"60152" 60152]:
 {{{
 #!CommitTicketReference repository="" revision="60152"
 Coding Standards: Correct `$post` parameter default values in `link-
 template.php`.

 This commit corrects the default post ID parameter values used in several
 functions to bring them in line with their `int` doctypes (and the
 doctypes of their internal function calls).

 More specifically,

 * `get_page_link()`: `$post = false` changed to `$post = 0`
 * `_get_page_link()`: `$post = false` changed to `$post = 0`
 * `post_comments_feed_link()`: `$post_id = ''` changed to `$post_id = 0`

 Follow-up to [1752], [4475], [6365], [9136], [9274], [21735], [24490],
 [32606], [37252].

 Props justlevine.
 See #63268.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63268#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list