Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 357b552 commit 7341375Copy full SHA for 7341375
src/Symfony/Component/Cache/DataCollector/CacheDataCollector.php
@@ -133,8 +133,10 @@ private function calculateStatistics()
133
$statistics[$name]['misses'] += $count - $call->misses;
134
} elseif ($call->name === 'hasItem') {
135
$statistics[$name]['reads'] += 1;
136
- if ($call->result === false) {
+ if ($call->result->getRawData()[0][0] === false) {
137
$statistics[$name]['misses'] += 1;
138
+ } else {
139
+ $statistics[$name]['hits'] += 1;
140
}
141
} elseif ($call->name === 'save') {
142
$statistics[$name]['writes'] += 1;
0 commit comments