Skip to content

Commit efd5fec

Browse files
committed
docs: replace mixed type in CacheInterface and BaseHandler file.
1 parent fc63748 commit efd5fec

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

system/Cache/CacheInterface.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ public function initialize();
2626
*
2727
* @param string $key Cache item name
2828
*
29-
* @return mixed
29+
* @return array|bool|float|int|object|string|null
3030
*/
3131
public function get(string $key);
3232

3333
/**
3434
* Saves an item to the cache store.
3535
*
36-
* @param string $key Cache item name
37-
* @param mixed $value The data to save
38-
* @param int $ttl Time To Live, in seconds (default 60)
36+
* @param string $key Cache item name
37+
* @param array|bool|float|int|object|string|null $value The data to save
38+
* @param int $ttl Time To Live, in seconds (default 60)
3939
*
4040
* @return bool Success or failure
4141
*/
@@ -56,7 +56,7 @@ public function delete(string $key);
5656
* @param string $key Cache ID
5757
* @param int $offset Step/value to increase by
5858
*
59-
* @return mixed
59+
* @return bool|int
6060
*/
6161
public function increment(string $key, int $offset = 1);
6262

@@ -66,7 +66,7 @@ public function increment(string $key, int $offset = 1);
6666
* @param string $key Cache ID
6767
* @param int $offset Step/value to increase by
6868
*
69-
* @return mixed
69+
* @return bool|int
7070
*/
7171
public function decrement(string $key, int $offset = 1);
7272

@@ -83,7 +83,7 @@ public function clean();
8383
* The information returned and the structure of the data
8484
* varies depending on the handler.
8585
*
86-
* @return mixed
86+
* @return array|bool|float|int|object|string|null
8787
*/
8888
public function getCacheInfo();
8989

system/Cache/Handlers/BaseHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static function validateKey($key, $prefix = ''): string
7777
* @param int $ttl Time to live
7878
* @param Closure $callback Callback return value
7979
*
80-
* @return mixed
80+
* @return array|bool|float|int|object|string|null
8181
*/
8282
public function remember(string $key, int $ttl, Closure $callback)
8383
{

0 commit comments

Comments
 (0)