1
0
Fork 0

Merge pull request #10 from igorw/json-force-object

Force empty lock files to contain a JSON object
pull/11/merge
Jordi Boggiano 2011-09-12 17:07:56 -07:00
commit d875f0964e
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class InstallCommand
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;
}
}