type fixes

This commit is contained in:
Yuri Kuznetsov
2022-03-18 14:05:16 +02:00
parent abca847e5a
commit 27d7e6e522
11 changed files with 18 additions and 6 deletions
@@ -83,6 +83,7 @@ class EspoRotatingFileHandler extends EspoFileHandler
$filePattern = $this->getFilePattern();
$dirPath = $this->fileManager->getDirName($this->filename);
/** @var string[] */
$logFiles = $this->fileManager->getFileList($dirPath, false, $filePattern, true);
if (!empty($logFiles) && count($logFiles) > $this->maxFiles) {