Skip to content

Commit

Permalink
Fix bug with require-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Mar 22, 2023
1 parent de4d945 commit 58acd4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CosyComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ public function run()
$require_list = array_keys(get_object_vars($composer_json_data->require));
}
if (!empty($composer_json_data->{'require-dev'})) {
$require_list = array_merge($require_list, array_keys(get_object_vars($composer_json_data->require)));
$require_list = array_merge($require_list, array_keys(get_object_vars($composer_json_data->{'require-dev'})));
}
$handler = AllowListHandler::createFromArray(array_merge($require_list, $config->getAllowList()));
}
Expand Down

0 comments on commit 58acd4d

Please sign in to comment.