From 3ca0a8d839c6958a25f8db0d2c2afcda7bed036d Mon Sep 17 00:00:00 2001 From: Marcus <48050627+barasimumatik@users.noreply.github.com> Date: Mon, 13 May 2024 14:07:08 +0200 Subject: [PATCH 1/2] change return type --- src/CacheTool.php | 2 +- src/Proxy/ApcuProxy.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CacheTool.php b/src/CacheTool.php index 4789329..945cb30 100644 --- a/src/CacheTool.php +++ b/src/CacheTool.php @@ -18,7 +18,7 @@ /** * @method mixed apcu_add(mixed $key, mixed $var, int $ttl = 0) - * @method boolean apcu_cache_info(boolean $limited = false) + * @method false|array apcu_cache_info(boolean $limited = false) * @method boolean|array apcu_regexp_get_keys(?string $regexp = null) * @method boolean apcu_cas(string $key, int $old, int $new) * @method boolean apcu_clear_cache() diff --git a/src/Proxy/ApcuProxy.php b/src/Proxy/ApcuProxy.php index 2d3b2ff..ea1aec8 100644 --- a/src/Proxy/ApcuProxy.php +++ b/src/Proxy/ApcuProxy.php @@ -117,7 +117,7 @@ public function apcu_cas($key, $old, $new) * @since 2.0.0 * @param boolean $limited If limited is TRUE, the return value will exclude the individual list of cache * entries. This is useful when trying to optimize calls for statistics gathering. - * @return boolean Array of cached data (and meta-data) or FALSE on failure + * @return false|array Array of cached data (and meta-data) or FALSE on failure */ public function apcu_cache_info($limited = false) { From f7beceac30e62ac9b0f9054e7bf074a04fb5b7c8 Mon Sep 17 00:00:00 2001 From: Marcus Barstorp Date: Mon, 13 May 2024 14:34:51 +0200 Subject: [PATCH 2/2] formatting --- src/Proxy/ApcuProxy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Proxy/ApcuProxy.php b/src/Proxy/ApcuProxy.php index ea1aec8..b3325a9 100644 --- a/src/Proxy/ApcuProxy.php +++ b/src/Proxy/ApcuProxy.php @@ -117,7 +117,7 @@ public function apcu_cas($key, $old, $new) * @since 2.0.0 * @param boolean $limited If limited is TRUE, the return value will exclude the individual list of cache * entries. This is useful when trying to optimize calls for statistics gathering. - * @return false|array Array of cached data (and meta-data) or FALSE on failure + * @return false|array Array of cached data (and meta-data) or FALSE on failure */ public function apcu_cache_info($limited = false) {