Merge pull request #36895 from apasov/patch-1

Fix json_decode expecting a string
This commit is contained in:
Arthur Schiwon 2023-05-08 21:20:38 +02:00 committed by GitHub
commit c7bb540d08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -439,7 +439,7 @@ class Checker {
*/
public function getResults(): array {
$cachedResults = $this->cache->get(self::CACHE_KEY);
if (!\is_null($cachedResults)) {
if (!\is_null($cachedResults) and $cachedResults !== false) {
return json_decode($cachedResults, true);
}