Skip to content

Commit

Permalink
Use default when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed May 10, 2024
1 parent 82084e9 commit 0f57349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Storages/Drivers/RedisStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function get(string $key, mixed $default = null): mixed
{
$value = $this->redis->get($this->decorateKey($key));

return $value !== null ? $this->unserialize($value) : null;
return $value !== null ? $this->unserialize($value) : $default;
}

/** @inheritDoc */
Expand Down

0 comments on commit 0f57349

Please sign in to comment.