1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 09:32:55 +00:00

Fix unset order to avoid a warning

This commit is contained in:
Jordi Boggiano 2014-09-05 16:39:00 +01:00
parent f7a84e423d
commit d18ac81381

View file

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