mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 22:18:40 +00:00
fix missing cachify type
This commit is contained in:
parent
be1283d6dc
commit
0eb659ce54
|
|
@ -276,7 +276,7 @@ class RedisCache extends ConnectionAbstract
|
||||||
*/
|
*/
|
||||||
private function cachify($value, int $type)
|
private function cachify($value, int $type)
|
||||||
{
|
{
|
||||||
if (\is_float($value) || \is_int($value)) {
|
if (\is_float($value) || \is_int($value) || \is_string($value)) {
|
||||||
return $value;
|
return $value;
|
||||||
} elseif ($type === CacheValueType::_BOOL) {
|
} elseif ($type === CacheValueType::_BOOL) {
|
||||||
return (string) ((int) $value);
|
return (string) ((int) $value);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user