Make WordPress Core

Changeset 60270


Ignore:
Timestamp:
05/31/2025 11:56:08 PM (17 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct the order of parameters in some cache functions used by unit tests.

Follow-up to [40561].

Props truptikanzariya, rutvikbhambhi2004, nareshbheda, sabernhardt, mukesh27.
Fixes #63497.

File:
1 edited

Legend:

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

    r56943 r60270  
    161161 * @link https://www.php.net/manual/en/memcached.casbykey.php
    162162 *
     163 * @param float  $cas_token  Unique value associated with the existing item. Generated by memcached.
    163164 * @param string $server_key The key identifying the server to store the value on.
    164  * @param float  $cas_token  Unique value associated with the existing item. Generated by memcached.
    165165 * @param string $key        The key under which to store the value.
    166166 * @param mixed  $value      The value to store.
    … …  
    12391239         * @link https://www.php.net/manual/en/memcached.casbykey.php
    12401240         *
     1241         * @param float  $cas_token  Unique value associated with the existing item. Generated by memcached.
    12411242         * @param string $server_key The key identifying the server to store the value on.
    1242          * @param float  $cas_token  Unique value associated with the existing item. Generated by memcached.
    12431243         * @param string $key        The key under which to store the value.
    12441244         * @param mixed  $value      The value to store.
    … …  
    19301930         * @link https://www.php.net/manual/en/memcached.replace.php
    19311931         *
    1932          * @param string $server_key The key identifying the server to store the value on.
    19331932         * @param string $key        The key under which to store the value.
    19341933         * @param mixed  $value      The value to store.
    19351934         * @param string $group      The group value appended to the $key.
     1935         * @param int    $expiration The expiration time, defaults to 0.
     1936         * @param string $server_key The key identifying the server to store the value on.
    19361937         * @param bool   $by_key     True to store in internal cache by key; false to not store by key.
    1937          * @param int    $expiration The expiration time, defaults to 0.
    19381938         * @return bool True on success, false on failure.
    19391939         */
Note: See TracChangeset for help on using the changeset viewer.