1
0
Fork 0

Fix unset order to avoid a warning

pull/3262/head
Jordi Boggiano 2014-09-05 16:39:00 +01:00
parent f7a84e423d
commit d18ac81381
1 changed files with 1 additions and 1 deletions

View File

@ -58,8 +58,8 @@ class ValidatingArrayLoader implements LoaderInterface
try { try {
$this->versionParser->normalize($this->config['version']); $this->versionParser->normalize($this->config['version']);
} catch (\Exception $e) { } catch (\Exception $e) {
unset($this->config['version']);
$this->errors[] = 'version : invalid value ('.$this->config['version'].'): '.$e->getMessage(); $this->errors[] = 'version : invalid value ('.$this->config['version'].'): '.$e->getMessage();
unset($this->config['version']);
} }
} }