N°2783 - Initialize property correctly (highlighted by 58c0da7e)

This commit is contained in:
Molkobain
2023-02-13 19:36:46 +01:00
parent 58c0da7e87
commit b97a464bb1

View File

@@ -119,7 +119,8 @@ class MFCompiler
$this->oFactory->ApplyChanges();
$this->aLog = array();
$this->aCustomListsCodes = [];
$this->aLog = [];
$this->sMainPHPCode = '<'.'?'."php\n";
$this->sMainPHPCode .= "/**\n";
$this->sMainPHPCode .= " * This file was automatically generated by the compiler on ".date('Y-m-d H:i:s')." -- DO NOT EDIT\n";
@@ -127,8 +128,8 @@ class MFCompiler
$this->sMainPHPCode .= "\n";
$this->sCompilationTimeStamp = "".microtime(true);
$this->sMainPHPCode .= "define('COMPILATION_TIMESTAMP', '".$this->sCompilationTimeStamp."');\n";
$this->aSnippets = array();
$this->aRelations = array();
$this->aSnippets = [];
$this->aRelations = [];
$this->aClassesCSSRules = [];
}