Make WordPress Core


Ignore:
Timestamp:
05/24/2015 05:39:47 AM (9 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/capabilities.php

    r32548 r32568  
    177177     * @param string $display_name Role display name.
    178178     * @param array $capabilities List of role capabilities in the above format.
    179      * @return WP_Role|null WP_Role object if role is added, null if already exists.
     179     * @return WP_Role|void WP_Role object, if role is added.
    180180     */
    181181    public function add_role( $role, $display_name, $capabilities = array() ) {
Note: See TracChangeset for help on using the changeset viewer.