Merge pull request #10 from igorw/json-force-object
Force empty lock files to contain a JSON objectpull/11/merge
commit
d875f0964e
|
@ -154,7 +154,7 @@ class InstallCommand
|
||||||
|
|
||||||
protected function storeLockFile(array $content)
|
protected function storeLockFile(array $content)
|
||||||
{
|
{
|
||||||
file_put_contents('composer.lock', json_encode($content)."\n");
|
file_put_contents('composer.lock', json_encode($content, JSON_FORCE_OBJECT)."\n");
|
||||||
echo '> composer.lock dumped'.PHP_EOL;
|
echo '> composer.lock dumped'.PHP_EOL;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue