We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4355550 commit 80ced73Copy full SHA for 80ced73
src/DataCollector/CacheCollector.php
@@ -39,7 +39,11 @@ public function onCacheEvent(CacheEvent $event)
39
40
if (isset($params['value'])) {
41
if ($this->collectValues) {
42
- $params['value'] = htmlspecialchars($this->getDataFormatter()->formatVar($event->value));
+ if (is_string($params['value'])) {
43
+ $params['value'] = @unserialize($params['value']) ?: $params['value'];
44
+ }
45
+
46
+ $params['value'] = htmlspecialchars($this->getDataFormatter()->formatVar($params['value']));
47
} else {
48
unset($params['value']);
49
}
0 commit comments