maybe fixing type bug

This commit is contained in:
Dennis Eichhorn 2019-12-08 01:21:30 +01:00
parent 0eb659ce54
commit 14af04f027

View File

@ -306,10 +306,11 @@ class RedisCache extends ConnectionAbstract
*/
private function reverseValue(int $type, $raw, int $start)
{
if ($type === \is_int($raw) || $type === \is_float($raw)) {
return $raw;
}
switch ($type) {
case \is_int($raw):
case \is_float($raw):
return $raw;
case CacheValueType::_BOOL:
return (bool) \substr($raw, $start + 1);
case CacheValueType::_STRING: