Merge pull request #2775 from Icinga/feature/iniparser-read-config-files-2766
Use parse_ini_string() where IniParser::parseIni() is not needed
This commit is contained in:
commit
a028209cbc
|
@ -260,6 +260,6 @@ class IniParser
|
|||
throw new NotReadableError('Couldn\'t read the file `%s\'', $path);
|
||||
}
|
||||
|
||||
return Config::fromArray(self::parseIni($content)->toArray())->setConfigFile($file);
|
||||
return Config::fromArray(parse_ini_string($content, true))->setConfigFile($file);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue