mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +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)
|
||||
{
|
||||
if (\is_float($value) || \is_int($value)) {
|
||||
if (\is_float($value) || \is_int($value) || \is_string($value)) {
|
||||
return $value;
|
||||
} elseif ($type === CacheValueType::_BOOL) {
|
||||
return (string) ((int) $value);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user