Make WordPress Core


Ignore:
Timestamp:
05/24/2015 05:39:47 AM (11 years ago)
Author:
wonderboymusic
Message:

Use void instead of null where appropriate when pipe-delimiting @return types. If a @return only contains void, remove it.

See #32444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r32535 r32568  
    900900         *
    901901         * @param string $id Customize Setting ID.
    902          * @return WP_Customize_Setting|null The setting, if set.
     902         * @return WP_Customize_Setting|void The setting, if set.
    903903         */
    904904        public function get_setting( $id ) {
    … …  
    945945         *
    946946         * @param string $id Panel ID to get.
    947          * @return WP_Customize_Panel|null Requested panel instance, if set.
     947         * @return WP_Customize_Panel|void Requested panel instance, if set.
    948948         */
    949949        public function get_panel( $id ) {
    … …  
    988988         *
    989989         * @param string $id Section ID.
    990          * @return WP_Customize_Section|null The section, if set.
     990         * @return WP_Customize_Section|void The section, if set.
    991991         */
    992992        public function get_section( $id ) {
    … …  
    10301030         *
    10311031         * @param string $id ID of the control.
    1032          * @return WP_Customize_Control|null The control object, if set.
     1032         * @return WP_Customize_Control|void The control object, if set.
    10331033         */
    10341034        public function get_control( $id ) {
    … …  
    15331533 * Sanitizes a hex color.
    15341534 *
    1535  * Returns either '', a 3 or 6 digit hex color (with #), or null.
     1535 * Returns either '', a 3 or 6 digit hex color (with #), or nothing.
    15361536 * For sanitizing values without a #, see sanitize_hex_color_no_hash().
    15371537 *
    … …  
    15391539 *
    15401540 * @param string $color
    1541  * @return string|null
     1541 * @return string|void
    15421542 */
    15431543function sanitize_hex_color( $color ) {
Note: See TracChangeset for help on using the changeset viewer.