Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: replace types mixed in CacheInterface and BaseHandler file. #7023

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions system/Cache/CacheInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ public function initialize();
*
* @param string $key Cache item name
*
* @return mixed
* @return array|bool|float|int|object|string|null
*/
public function get(string $key);

/**
* Saves an item to the cache store.
*
* @param string $key Cache item name
* @param mixed $value The data to save
* @param int $ttl Time To Live, in seconds (default 60)
* @param string $key Cache item name
* @param array|bool|float|int|object|string|null $value The data to save
* @param int $ttl Time To Live, in seconds (default 60)
*
* @return bool Success or failure
*/
Expand All @@ -56,7 +56,7 @@ public function delete(string $key);
* @param string $key Cache ID
* @param int $offset Step/value to increase by
*
* @return mixed
* @return bool|int
*/
public function increment(string $key, int $offset = 1);

Expand All @@ -66,7 +66,7 @@ public function increment(string $key, int $offset = 1);
* @param string $key Cache ID
* @param int $offset Step/value to increase by
*
* @return mixed
* @return bool|int
*/
public function decrement(string $key, int $offset = 1);

Expand All @@ -83,7 +83,7 @@ public function clean();
* The information returned and the structure of the data
* varies depending on the handler.
*
* @return mixed
* @return array|bool|float|int|object|string|null
kenjis marked this conversation as resolved.
Show resolved Hide resolved
*/
public function getCacheInfo();

Expand Down
2 changes: 1 addition & 1 deletion system/Cache/Handlers/BaseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static function validateKey($key, $prefix = ''): string
* @param int $ttl Time to live
* @param Closure $callback Callback return value
*
* @return mixed
* @return array|bool|float|int|object|string|null
*/
public function remember(string $key, int $ttl, Closure $callback)
{
Expand Down