From 906cfae3f27312796215d7c5dce77fd06ed318ab Mon Sep 17 00:00:00 2001 From: Bill Tomczak Date: Mon, 14 Mar 2022 20:22:50 -0700 Subject: [PATCH] Fix bad array reference --- src/tasks/PropertiesFromComposerTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tasks/PropertiesFromComposerTask.php b/src/tasks/PropertiesFromComposerTask.php index 63e6f65..0b5730d 100644 --- a/src/tasks/PropertiesFromComposerTask.php +++ b/src/tasks/PropertiesFromComposerTask.php @@ -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']); }