Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Sep 9, 2024
1 parent 3776790 commit 0a9835b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/Cache/Handlers/RedisHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function initialize()
public function get(string $key)
{
$key = static::validateKey($key, $this->prefix);
$data = $this->redis->hMGet($key, ['__ci_type', '__ci_value']);
$data = $this->redis->hMget($key, ['__ci_type', '__ci_value']);

if (! isset($data['__ci_type'], $data['__ci_value']) || $data['__ci_value'] === false) {
return null;
Expand Down Expand Up @@ -147,7 +147,7 @@ public function save(string $key, $value, int $ttl = 60)
return false;
}

if (! $this->redis->hMSet($key, ['__ci_type' => $dataType, '__ci_value' => $value])) {
if (! $this->redis->hMset($key, ['__ci_type' => $dataType, '__ci_value' => $value])) {
return false;
}

Expand Down

0 comments on commit 0a9835b

Please sign in to comment.