phpan/phpstan checks and fixes

This commit is contained in:
Clemens Schwaighofer
2022-01-13 16:11:19 +09:00
parent 13c0fcd869
commit 1bd45d8a8a
9 changed files with 97 additions and 23 deletions

View File

@@ -13,6 +13,7 @@ class FileWriter
{
/** @var string */
private static $debug_filename = 'debug_file.log'; // where to write output
/** @var string */
private static $debug_folder;
/**
@@ -71,8 +72,7 @@ class FileWriter
// if empty try to set base log folder
if (
empty(self::$debug_folder) &&
defined('BASE') && !empty(BASE) &&
defined('LOG') && !empty(LOG)
defined('BASE') && defined('LOG')
) {
self::$debug_folder = BASE . LOG;
}