Skip to content

Commit

Permalink
Merge pull request #9183 from codeigniter4/dependabot/composer/rector…
Browse files Browse the repository at this point in the history
…/rector-1.2.5

chore(deps-dev): update rector/rector requirement from 1.2.4 to 1.2.5
  • Loading branch information
samsonasik authored Sep 9, 2024
2 parents 647f4e7 + 0a9835b commit b678930
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"phpunit/phpcov": "^9.0.2 || ^10.0",
"phpunit/phpunit": "^10.5.16 || ^11.2",
"predis/predis": "^1.1 || ^2.0",
"rector/rector": "1.2.4"
"rector/rector": "1.2.5"
},
"replace": {
"codeigniter4/framework": "self.version"
Expand Down
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 b678930

Please sign in to comment.