- minor code/performance improvements
This commit is contained in:
@@ -162,9 +162,9 @@ class LogController extends \Prefab {
|
||||
/**
|
||||
* get Logger instance
|
||||
* @param string $type
|
||||
* @return \Log|null
|
||||
* @return \Log
|
||||
*/
|
||||
public static function getLogger($type){
|
||||
public static function getLogger(string $type) : \Log {
|
||||
$logFiles = Config::getPathfinderData('logfiles');
|
||||
|
||||
$logFileName = empty($logFiles[$type]) ? 'error' : $logFiles[$type];
|
||||
|
||||
Reference in New Issue
Block a user