1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 16:42:57 +00:00

Define property before use

This commit is contained in:
Jordi Boggiano 2012-07-18 18:42:46 +02:00
parent defe5766a4
commit e618648f62

View file

@ -24,6 +24,7 @@ class ValidatingArrayLoader implements LoaderInterface
private $versionParser;
private $ignoreErrors;
private $errors = array();
private $config;
public function __construct(LoaderInterface $loader, $ignoreErrors = true, VersionParser $parser = null)
{
@ -169,7 +170,7 @@ class ValidatingArrayLoader implements LoaderInterface
$package = $this->loader->load($this->config);
$this->errors = array();
unset($this->config);
$this->config = null;
return $package;
}