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:
parent
f7a84e423d
commit
d18ac81381
1 changed files with 1 additions and 1 deletions
|
@ -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']);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue