[wp-trac] [WordPress Trac] #51278: Update return types to reflect the real return types. Remove mixed.
WordPress Trac
noreply at wordpress.org
Sun Nov 15 17:22:38 UTC 2020
#51278: Update return types to reflect the real return types. Remove mixed.
-------------------------+-------------------------------------
Reporter: ReneHermi | Owner: (none)
Type: enhancement | Status: reviewing
Priority: normal | Milestone: Future Release
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: docs, coding-standards
-------------------------+-------------------------------------
Changes (by johnbillion):
* owner: johnbillion => (none)
Comment:
Agreed, this can be improved further. Worth noting that `get_option()`
does return correctly typed values for a value that doesn't originate from
the database storage, for example the value from the `$default` parameter
when the option doesn't exist, or the return value from any of its filters
(`pre_option_{$option}`, `default_option_{$option}`, and
`option_{$option}`).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51278#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list