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-admin-bar.php

    r32534 r32568  
    1515        /**
    1616         * @param string $name
    17          * @return string|array|null
     17         * @return string|array|void
    1818         */
    1919        public function __get( $name ) {
    … …  
    174174        /**
    175175         * @param string $id
    176          * @return object|null
     176         * @return object|void
    177177         */
    178178        final protected function _get_node( $id ) {
    … …  
    188188
    189189        /**
    190          * @return array|null
     190         * @return array|void
    191191         */
    192192        final public function get_nodes() {
    … …  
    201201
    202202        /**
    203          * @return array|null
     203         * @return array|void
    204204         */
    205205        final protected function _get_nodes() {
    … …  
    253253
    254254        /**
    255          * @return object|null
     255         * @return object|void
    256256         */
    257257        final protected function _bind() {
Note: See TracChangeset for help on using the changeset viewer.