Skip to content

Commit

Permalink
Fix unserialize(): Argument laravel#1 ($data) must be of type string
Browse files Browse the repository at this point in the history
  • Loading branch information
bensondevs authored Nov 12, 2024
1 parent 4cd413b commit 0a8fac4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Cache/RedisStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,10 @@ protected function serialize($value)
*/
protected function unserialize($value)
{
if ($value instanceof \Redis) {
return $value;
}

return is_numeric($value) ? $value : unserialize($value);
}
}

0 comments on commit 0a8fac4

Please sign in to comment.