[wp-trac] [WordPress Trac] #64238: PHPStan code quality improvements for 7.0

WordPress Trac noreply at wordpress.org
Sat May 2 05:54:53 UTC 2026


#64238: PHPStan code quality improvements for 7.0
--------------------------------------+-------------------------------
 Reporter:  SergeyBiryukov            |       Owner:  (none)
     Type:  task (blessed)            |      Status:  closed
 Priority:  normal                    |   Milestone:  7.0
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  coding-standards
--------------------------------------+-------------------------------

Comment (by westonruter):

 In [changeset:"62293" 62293]:
 {{{
 #!CommitTicketReference repository="" revision="62293"
 I18N: Harden against undefined index in
 `_load_script_textdomain_from_src()`.

 This guards against an undefined index warning being raised when a script
 or script module is registered with a URL that lacks a path component.

 This also adds full PHPStan type definitions for `wp_parse_url()`,
 ensuring that the `_load_script_textdomain_from_src()` function has no
 PHPStan errors at rule level 10.

 Developed in https://github.com/WordPress/wordpress-develop/pull/11690

 Follow-up to r62278.

 Props westonruter, manzoorwanijk, mukesh27.
 See #65015, #64238.
 }}}

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


More information about the wp-trac mailing list