Fix unset order to avoid a warning

main
Jordi Boggiano 10 years ago
parent f7a84e423d
commit d18ac81381

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

Loading…
Cancel
Save