mirror of
https://github.com/composer/composer
synced 2025-05-11 09:32:55 +00:00
Define property before use
This commit is contained in:
parent
defe5766a4
commit
e618648f62
1 changed files with 2 additions and 1 deletions
|
@ -24,6 +24,7 @@ class ValidatingArrayLoader implements LoaderInterface
|
||||||
private $versionParser;
|
private $versionParser;
|
||||||
private $ignoreErrors;
|
private $ignoreErrors;
|
||||||
private $errors = array();
|
private $errors = array();
|
||||||
|
private $config;
|
||||||
|
|
||||||
public function __construct(LoaderInterface $loader, $ignoreErrors = true, VersionParser $parser = null)
|
public function __construct(LoaderInterface $loader, $ignoreErrors = true, VersionParser $parser = null)
|
||||||
{
|
{
|
||||||
|
@ -169,7 +170,7 @@ class ValidatingArrayLoader implements LoaderInterface
|
||||||
|
|
||||||
$package = $this->loader->load($this->config);
|
$package = $this->loader->load($this->config);
|
||||||
$this->errors = array();
|
$this->errors = array();
|
||||||
unset($this->config);
|
$this->config = null;
|
||||||
|
|
||||||
return $package;
|
return $package;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue