Skip to content

Commit e1ca484

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@60270 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 43b7ac1 commit e1ca484

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/phpunit/includes/object-cache.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ function wp_cache_cas( $cas_token, $key, $value, $group = '', $expiration = 0 )
160160
*
161161
* @link https://www.php.net/manual/en/memcached.casbykey.php
162162
*
163-
* @param string $server_key The key identifying the server to store the value on.
164163
* @param float $cas_token Unique value associated with the existing item. Generated by memcached.
164+
* @param string $server_key The key identifying the server to store the value on.
165165
* @param string $key The key under which to store the value.
166166
* @param mixed $value The value to store.
167167
* @param string $group The group value appended to the $key.
@@ -1238,8 +1238,8 @@ public function cas( $cas_token, $key, $value, $group = 'default', $expiration =
12381238
*
12391239
* @link https://www.php.net/manual/en/memcached.casbykey.php
12401240
*
1241-
* @param string $server_key The key identifying the server to store the value on.
12421241
* @param float $cas_token Unique value associated with the existing item. Generated by memcached.
1242+
* @param string $server_key The key identifying the server to store the value on.
12431243
* @param string $key The key under which to store the value.
12441244
* @param mixed $value The value to store.
12451245
* @param string $group The group value appended to the $key.
@@ -1929,12 +1929,12 @@ public function prependByKey( $server_key, $key, $value, $group = 'default' ) {
19291929
*
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.
1936-
* @param bool $by_key True to store in internal cache by key; false to not store by key.
19371935
* @param int $expiration The expiration time, defaults to 0.
1936+
* @param string $server_key The key identifying the server to store the value on.
1937+
* @param bool $by_key True to store in internal cache by key; false to not store by key.
19381938
* @return bool True on success, false on failure.
19391939
*/
19401940
public function replace( $key, $value, $group = 'default', $expiration = 0, $server_key = '', $by_key = false ) {

0 commit comments

Comments
 (0)