[wp-trac] [WordPress Trac] #35346: WP_Term breaks type-hints for stdClass
WordPress Trac
noreply at wordpress.org
Thu Jan 7 13:15:40 UTC 2016
#35346: WP_Term breaks type-hints for stdClass
--------------------------+------------------------------
Reporter: exz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.4
Severity: normal | Resolution:
Keywords: close | Focuses:
--------------------------+------------------------------
Changes (by johnbillion):
* keywords: => close
* version: 4.4.1 => 4.4
Comment:
I don't think it's unreasonable to expect that a `stdClass` pseudo-object
will at some point get upgraded to a proper class, as happened with
`WP_Term`in 4.4 and with `WP_User`, `WP_Post`, etc in previous releases.
This makes type hinting `stdClass` fragile. I think this issue is a
wontfix.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35346#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list