Make WordPress Core


Ignore:
Timestamp:
10/16/2023 03:15:14 PM (19 months ago)
Author:
flixos90
Message:

General: Remove discouraged @return void annotations.

Such @return void annotations must not be used in WordPress core's PHP code, except bundled themes, third-party libraries, and PHP compatibility shims.

Props isabel_brison, swissspidy.
Fixes #59619.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/object-cache.php

    r56161 r56943  
    821821 *
    822822 * @param int $blog_id Blog to switch to.
    823  * @return void
    824823 */
    825824function wp_cache_switch_to_blog( $blog_id ) {
     
    833832 *
    834833 * @global WP_Object_Cache $wp_object_cache WordPress Object Cache
    835  * @return void
    836834 */
    837835function wp_cache_init() {
     
    844842 *
    845843 * @param string|array $groups A group or an array of groups to add.
    846  * @return void
    847844 */
    848845function wp_cache_add_global_groups( $groups ) {
     
    855852 *
    856853 * @param string|array $groups A group or an array of groups to add.
    857  * @return void
    858854 */
    859855function wp_cache_add_non_persistent_groups( $groups ) {
     
    23302326     *
    23312327     * @param array $groups Array of groups.
    2332      * @return void
    23332328     */
    23342329    public function add_global_groups( $groups ) {
     
    23502345     *
    23512346     * @param array $groups Array of groups.
    2352      * @return void
    23532347     */
    23542348    public function add_non_persistent_groups( $groups ) {
     
    23822376     *
    23832377     * @param int $blog_id Blog to switch to.
    2384      * @return void
    23852378     */
    23862379    public function switch_to_blog( $blog_id ) {
Note: See TracChangeset for help on using the changeset viewer.