From de1b02f61b879d4e7b65b8d15b02d2735bba3eca Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 15 Jan 2019 06:17:42 +0000 Subject: [PATCH] Docs: Fix the `WP_Object_Cache::get()` docblock. The `$force` parameter is a `bool`, not a `string`. The matching `wp_cache_get()` docblock has the correct type. Props subrataemfluence. Fixes #44454. git-svn-id: https://develop.svn.wordpress.org/trunk@44601 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/cache.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/cache.php b/src/wp-includes/cache.php index 5a4f2fbc39..beb6d69234 100644 --- a/src/wp-includes/cache.php +++ b/src/wp-includes/cache.php @@ -526,10 +526,10 @@ class WP_Object_Cache { * * @param int|string $key What the contents in the cache are called. * @param string $group Optional. Where the cache contents are grouped. Default 'default'. - * @param string $force Optional. Unused. Whether to force a refetch rather than relying on the local + * @param bool $force Optional. Unused. Whether to force a refetch rather than relying on the local * cache. Default false. - * @param bool $found Optional. Whether the key was found in the cache (passed by reference). - * Disambiguates a return of false, a storable value. Default null. + * @param bool $found Optional. Whether the key was found in the cache (passed by reference). + * Disambiguates a return of false, a storable value. Default null. * @return false|mixed False on failure to retrieve contents or the cache contents on success. */ public function get( $key, $group = 'default', $force = false, &$found = null ) {