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

WordPress Trac noreply at wordpress.org
Thu Jun 19 22:36:03 UTC 2025


#63268: PHPStan code quality improvements for 6.9
----------------------------+-------------------------------
 Reporter:  justlevine      |       Owner:  SergeyBiryukov
     Type:  task (blessed)  |      Status:  accepted
 Priority:  normal          |   Milestone:  6.9
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  coding-standards
----------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"60328" 60328]:
 {{{
 #!CommitTicketReference repository="" revision="60328"
 Coding Standards: Remove unreachable `return` in
 `_get_block_template_file()`.

 This commit removes an unreachable `return` statement, as the function
 will bail early if  `$template_type` is not a `wp_template` or
 `wp_template_part`.

 For the same reason, the second `if` conditional was also redundant and is
 now removed.

 Follow-up to [52062].

 Props justlevine.
 See #63268.
 }}}

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


More information about the wp-trac mailing list