Skip to content

Commit 7dfd8d3

Browse files
committed
Show only value type in debug bar panel
1 parent f35daa3 commit 7dfd8d3

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

β€Žsrc/Cache.phpβ€Ž

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
namespace Framework\Cache;
1111

1212
use Framework\Cache\Debug\CacheCollector;
13-
use Framework\Debug\Debugger;
1413
use Framework\Log\Logger;
1514
use Framework\Log\LogLevel;
1615
use InvalidArgumentException;
@@ -412,7 +411,7 @@ protected function addDebugGet(string $key, float $start, mixed $value) : mixed
412411
'command' => 'GET',
413412
'status' => $value === null ? 'FAIL' : 'OK',
414413
'key' => $key,
415-
'value' => Debugger::makeDebugValue($value),
414+
'value' => \get_debug_type($value),
416415
]);
417416
return $value;
418417
}
@@ -426,7 +425,7 @@ protected function addDebugSet(string $key, ?int $ttl, float $start, mixed $valu
426425
'command' => 'SET',
427426
'status' => $status ? 'OK' : 'FAIL',
428427
'key' => $key,
429-
'value' => Debugger::makeDebugValue($value),
428+
'value' => \get_debug_type($value),
430429
'ttl' => $this->makeTtl($ttl),
431430
]);
432431
return $status;

β€Žsrc/Debug/CacheCollector.phpβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected function renderCommands() : string
101101
<th>Command</th>
102102
<th>Status</th>
103103
<th>Key</th>
104-
<th>Value</th>
104+
<th>Value Type</th>
105105
<th title="Time To Live in seconds">TTL</th>
106106
<th>Expires At</th>
107107
<th title="Milliseconds">Time</th>

0 commit comments

Comments
 (0)