Skip to content

Commit

Permalink
Merge pull request #3171 from GawainLynch/hotfix/composer-require
Browse files Browse the repository at this point in the history
Workaround Bolt 2.0 installs with "require": []
  • Loading branch information
bobdenotter committed Mar 18, 2015
2 parents 58ab41e + fac41b4 commit 219e398
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Composer/Action/BoltExtendJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ public function updateJson(Application $app)
$jsonFile = new JsonFile($this->options['composerjson']);
if ($jsonFile->exists()) {
$json = $jsonorig = $jsonFile->read();

// Workaround Bolt 2.0 installs with "require": []
if (isset($json['require']) && empty($json['require'])) {
unset($json['require']);
}
} else {
// Error
$this->messages[] = Trans::__(
Expand Down

0 comments on commit 219e398

Please sign in to comment.