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-widgets.php

    r32542 r32568  
    110110         *
    111111         * @param $setting_id Setting ID.
    112          * @return string|null Setting type. Null otherwise.
     112         * @return string|void Setting type.
    113113         */
    114114        protected function get_setting_type( $setting_id ) {
    … …  
    11371137         *
    11381138         * @param array $value Widget instance to sanitize.
    1139          * @return array|null Sanitized widget instance.
     1139         * @return array|void Sanitized widget instance.
    11401140         */
    11411141        public function sanitize_widget_instance( $value ) {
Note: See TracChangeset for help on using the changeset viewer.