The expression return $this->cache could return the type null which is incompatible with the type-hinted return Yiisoft\Cache\CacheInterface. Consider adding an additional type-check to rule them out.
Loading history...
33
}
34
35
private function getQueryCache(): QueryCache
36
{
37
if ($this->queryCache === null) {
38
$this->queryCache = new QueryCache($this->getCache());
The expression return $this->queryCache could return the type null which is incompatible with the type-hinted return Yiisoft\Db\Cache\QueryCache. Consider adding an additional type-check to rule them out.
Loading history...
42
}
43
44
private function getSchemaCache(): SchemaCache
45
{
46
if ($this->schemaCache === null) {
47
$this->schemaCache = new SchemaCache($this->getCache());
The expression return $this->schemaCache could return the type null which is incompatible with the type-hinted return Yiisoft\Db\Cache\SchemaCache. Consider adding an additional type-check to rule them out.