Do not quiet error messages when parsing config files

This commit is contained in:
Shoghi Cervantes 2014-12-07 23:21:47 +01:00
parent 49e93cee80
commit 1041bb0e6a

View File

@ -130,14 +130,14 @@ class Config{
$this->parseProperties($content); $this->parseProperties($content);
break; break;
case Config::JSON: case Config::JSON:
$this->config = @json_decode($content, true); $this->config = json_decode($content, true);
break; break;
case Config::YAML: case Config::YAML:
$content = self::fixYAMLIndexes($content); $content = self::fixYAMLIndexes($content);
$this->config = yaml_parse($content); $this->config = yaml_parse($content);
break; break;
case Config::SERIALIZED: case Config::SERIALIZED:
$this->config = @unserialize($content); $this->config = unserialize($content);
break; break;
case Config::ENUM: case Config::ENUM:
$this->parseList($content); $this->parseList($content);