Browse Source

Fix #19178: Fix null value in unserialize for PHP 8.1 (#19178)

tags/2.0.45
Aurélien Chretien 3 years ago committed by GitHub
parent
commit
ebb1d8bc60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      framework/caching/Cache.php

2
framework/caching/Cache.php

@ -135,7 +135,7 @@ abstract class Cache extends Component implements CacheInterface
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);
}

Loading…
Cancel
Save