8000 Fix unserialize(): Argument laravel#1 ($data) must be of type string · bensondevs/framework@a30d970 · GitHub
[go: up one dir, main page]

Skip to content

Commit a30d970

Browse files
authored
Fix unserialize(): Argument laravel#1 ($data) must be of type string
1 parent 4cd413b commit a30d970

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Cache/RedisStore.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,10 @@ protected function serialize($value)
419419
*/
420420
protected function unserialize($value)
421421
{
422+
if ($value instanceof \Redis) {
423+
return $value;
424+
}
425+
422426
return is_numeric($value) ? $value : unserialize($value);
423427
}
424428
}

0 commit comments

Comments
 (0)
0