- 将 CacheItem 类中的 isHit 属性从无类型改为 bool 类型 -此修改提高了代码的类型安全性和
@@ -17,7 +17,7 @@ class CacheItem implements CacheItemInterface
public mixed $value;
- public $isHit = true;
+ public bool $isHit;
public function __construct(string $key, mixed $value = null, int $create_ts = 0, int $ttl = 0)