From 9f5480eef4dcf36b9e31cfe85f9c56c7becc034d Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 13 Apr 2021 23:07:54 +0200 Subject: ensure redis returns bool for hasKey Signed-off-by: Arthur Schiwon --- lib/private/Http/Client/NegativeDnsCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Http/Client') diff --git a/lib/private/Http/Client/NegativeDnsCache.php b/lib/private/Http/Client/NegativeDnsCache.php index 550d75a9c08..631fa19c90f 100644 --- a/lib/private/Http/Client/NegativeDnsCache.php +++ b/lib/private/Http/Client/NegativeDnsCache.php @@ -46,6 +46,6 @@ class NegativeDnsCache { } public function isNegativeCached(string $domain, int $type) : bool { - return $this->cache->hasKey($this->createCacheKey($domain, $type)); + return (bool)$this->cache->hasKey($this->createCacheKey($domain, $type)); } } -- cgit v1.2.3