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

WordPress Trac noreply at wordpress.org
Thu May 7 21:22:22 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 jorbin):

 In [changeset:"62325" 62325]:
 {{{
 #!CommitTicketReference repository="" revision="62325"
 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.

 Reviewed by desrosj, jorbin.
 Merges [62293] to the 7.0 branch.

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

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


More information about the wp-trac mailing list