Skip to content

Commit

Permalink
Fix #19178: Fix null value in unserialize for PHP 8.1 (#19178)
Browse files Browse the repository at this point in the history
  • Loading branch information
achretien committed Jan 20, 2022
1 parent 942e726 commit ebb1d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/caching/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function get($key)
if ($value === false || $this->serializer === false) {
return $value;
} elseif ($this->serializer === null) {
$value = unserialize($value);
$value = unserialize((string)$value);
} else {
$value = call_user_func($this->serializer[1], $value);
}
Expand Down

0 comments on commit ebb1d8b

Please sign in to comment.