Skip to content

Commit

Permalink
Merge pull request #245 from barasimumatik/phpdoc_type_info_fix
Browse files Browse the repository at this point in the history
improve phpdoc return type for apcu_cache_info
  • Loading branch information
gordalina authored May 13, 2024
2 parents fa4b8c7 + f7becea commit 315230f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CacheTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/Proxy/ApcuProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 315230f

Please sign in to comment.