Skip to content

Commit

Permalink
Fix bad array reference
Browse files Browse the repository at this point in the history
  • Loading branch information
billtomczak committed Mar 15, 2022
1 parent 0177bc6 commit 906cfae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/PropertiesFromComposerTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function main()
$this->log('composer.json has been updated, be sure to review the changes', Project::MSG_WARN);
}

if (str_replace('.', '-', $json[''])) {
if (str_replace('.', '-', $json['type'])) {
if (!array_key_exists($json['type'], $this->types)) {
$this->throwError('Invalid Joomla Extension Type: ' . $json['type']);
}
Expand Down

0 comments on commit 906cfae

Please sign in to comment.