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:
Eric Lippmann 2017-03-28 09:23:53 +02:00
commit a028209cbc
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}