Skip to content

Commit

Permalink
Workaround Bolt 2.0 installs with "require": []
Browse files Browse the repository at this point in the history
  • Loading branch information
GwendolenLynch committed Mar 18, 2015
1 parent 187cc2f commit 1dcb788
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 1dcb788

Please sign in to comment.