type fixes

This commit is contained in:
Yuri Kuznetsov
2022-03-16 14:16:32 +02:00
parent 46f3846d36
commit d92bf08160
7 changed files with 13 additions and 13 deletions
+2 -4
View File
@@ -111,14 +111,12 @@ class Module
private function init(): void
{
if ($this->useCache && $this->dataCache->has($this->cacheKey)) {
/** @var ?array<string,array<string,mixed>> */
/** @var array<string,array<string,mixed>> */
$data = $this->dataCache->get($this->cacheKey);
$this->data = $data;
if ($data !== null) {
return;
}
return;
}
$this->data = $this->loadData();