Don't concatenate in function declaration
This commit is contained in:
parent
1400f3e86a
commit
96a98ae846
2 changed files with 4 additions and 3 deletions
|
@ -93,8 +93,9 @@ class Config
|
|||
*
|
||||
* @return Config
|
||||
*/
|
||||
public static function getInstance($yamlfile = __DIR__.'/../config.yml')
|
||||
public static function getInstance($yamlfile = 'config.yml')
|
||||
{
|
||||
$yamlfile = __DIR__.'/../'.$yamlfile;
|
||||
if (is_null(self::$instance) || self::$instance->file != $yamlfile) {
|
||||
self::$instance = new Config($yamlfile);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue