Skip to content

Commit

Permalink
Fix no default when getting extension dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
askvortsov1 committed May 28, 2020
1 parent 8abff39 commit f19bbd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extension/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public function getIcon()
* Get the list of flarum extensions that this extension depends on
*/
public function getFlarumExtensionDependencies() {
return $this->composerJsonAttribute('extra.flarum-extension.dependencies.extensions');
return Arr::get($this->composerJson, 'extra.flarum-extension.dependencies.extensions', []);
}

public function enable(Container $container)
Expand Down

0 comments on commit f19bbd6

Please sign in to comment.