Skip to content

Commit

Permalink
Ensure values always contain an integer (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald authored Dec 7, 2023
1 parent 5f63272 commit a9a61b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Livewire/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public function render(): Renderable
->map(function ($row) {
return (object) [
'key' => $row->key,
'hits' => $row->cache_hit,
'misses' => $row->cache_miss,
'hits' => $row->cache_hit ?? 0,
'misses' => $row->cache_miss ?? 0,
];
}),
'keys'
Expand Down

0 comments on commit a9a61b9

Please sign in to comment.