Skip to content

Commit

Permalink
Convert null to false in get method
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed May 3, 2024
1 parent f452a29 commit bedfeec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Jackalope/Transport/DoctrineDBAL/CachedClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,13 @@ private function set(string $name, string $key, $value): void
private function get(string $name, string $key)
{
if ($this->caches[$name] instanceof CacheInterface) {
return $this->caches[$name]->get($key);
$result = $this->caches[$name]->get($key);

if ($result === null) {
return false;
}

return $result;
}

return $this->caches[$name]->fetch($key);
Expand Down

0 comments on commit bedfeec

Please sign in to comment.