Revert default change from #5603
parent
4479b8a690
commit
edddae42db
|
@ -625,7 +625,7 @@ class Installer
|
|||
// but as it is not persisted on disk we use a loader/dumper
|
||||
// to reload it in memory
|
||||
$localRepo = new InstalledArrayRepository(array());
|
||||
$loader = new ArrayLoader();
|
||||
$loader = new ArrayLoader(null, true);
|
||||
$dumper = new ArrayDumper();
|
||||
foreach ($tempLocalRepo->getCanonicalPackages() as $pkg) {
|
||||
$localRepo->addPackage($loader->load($dumper->dump($pkg)));
|
||||
|
|
|
@ -29,7 +29,7 @@ class ArrayLoader implements LoaderInterface
|
|||
protected $versionParser;
|
||||
protected $loadOptions;
|
||||
|
||||
public function __construct(SemverVersionParser $parser = null, $loadOptions = true)
|
||||
public function __construct(SemverVersionParser $parser = null, $loadOptions = false)
|
||||
{
|
||||
if (!$parser) {
|
||||
$parser = new VersionParser;
|
||||
|
|
|
@ -150,6 +150,7 @@ class ArrayLoaderTest extends \PHPUnit_Framework_TestCase
|
|||
$package = $this->loader->load($config);
|
||||
$dumper = new ArrayDumper;
|
||||
$expectedConfig = $config;
|
||||
$expectedConfig = $this->fixConfigWhenLoadConfigIsFalse($config);
|
||||
$this->assertEquals($expectedConfig, $dumper->dump($package));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue