Commit d31a6cf9 authored by wolfcode's avatar wolfcode

fix bug

parent 081c404a
...@@ -1213,7 +1213,9 @@ abstract class PDOConnection extends Connection ...@@ -1213,7 +1213,9 @@ abstract class PDOConnection extends Connection
$name = $cacheItem->getKey(); $name = $cacheItem->getKey();
if ($this->cache->has($name)) { if ($this->cache->has($name)) {
return $this->cache->get($name) ?: []; // 兼容 PHP 8.0 + ,建议放弃 think-cache 这个库 ~~~
$result = $this->cache->get($name) ?: [];
if (!empty($result)) return $result;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment