Skip to content

Commit c435977

Browse files
Docs: Correct the type of the $found parameter in wp_cache_get().
Follow-up to [20089], [34225], [34227], [36069]. Props jigar-bhanushali. Fixes #63217. git-svn-id: https://develop.svn.wordpress.org/trunk@60130 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 1ec1c55 commit c435977

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/wp-includes/cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function wp_cache_set_multiple( array $data, $group = '', $expire = 0 ) {
144144
* @param string $group Optional. Where the cache contents are grouped. Default empty.
145145
* @param bool $force Optional. Whether to force an update of the local cache
146146
* from the persistent cache. Default false.
147-
* @param bool $found Optional. Whether the key was found in the cache (passed by reference).
147+
* @param bool|null $found Optional. Whether the key was found in the cache (passed by reference).
148148
* Disambiguates a return of false, a storable value. Default null.
149149
* @return mixed|false The cache contents on success, false on failure to retrieve contents.
150150
*/

src/wp-includes/class-wp-object-cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public function set_multiple( array $data, $group = '', $expire = 0 ) {
355355
* @param string $group Optional. Where the cache contents are grouped. Default 'default'.
356356
* @param bool $force Optional. Unused. Whether to force an update of the local cache
357357
* from the persistent cache. Default false.
358-
* @param bool $found Optional. Whether the key was found in the cache (passed by reference).
358+
* @param bool|null $found Optional. Whether the key was found in the cache (passed by reference).
359359
* Disambiguates a return of false, a storable value. Default null.
360360
* @return mixed|false The cache contents on success, false on failure to retrieve contents.
361361
*/

0 commit comments

Comments
 (0)