[wp-trac] [WordPress Trac] #65342: Charset: Polyfill mb_ord() and mb_chr() for UTF-8
WordPress Trac
noreply at wordpress.org
Sun May 31 17:56:24 UTC 2026
#65342: Charset: Polyfill mb_ord() and mb_chr() for UTF-8
--------------------------------------+----------------------
Reporter: dmsnell | Owner: dmsnell
Type: enhancement | Status: closed
Priority: normal | Milestone: 7.1
Component: Charset | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+----------------------
Comment (by westonruter):
In [changeset:"62436" 62436]:
{{{
#!CommitTicketReference repository="" revision="62436"
Charset: Add missing `return` statement to `_mb_ord()`.
This fixes a `return.missing` PHPStan error in `_mb_ord()`, fixing the
only rule level 0 violation currently reported. In practice the `return`
is in an unreachable code path, but static analysis may not be aware of
this.
Developed in https://github.com/WordPress/wordpress-develop/pull/12020.
Follow-up to r62424.
Props westonruter, dmsnell.
See #65342.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65342#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list