Skip to content

Commit

Permalink
Add the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Mar 23, 2023
1 parent de8e8d5 commit 448c8b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CosyComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,9 @@ public function run()
}
// Only update the ones in the allow list, if indicated.
$handler = AllowListHandler::createFromConfig($config);
if ($config->shouldAlwaysAllowDirect()) {
// If we have an allow list, we should also make sure to include the
// direct ones in it, if indicated.
if ($config->getAllowList() && $config->shouldAlwaysAllowDirect()) {
$require_list = [];
if (!empty($composer_json_data->require)) {
$require_list = array_keys(get_object_vars($composer_json_data->require));
Expand Down

0 comments on commit 448c8b0

Please sign in to comment.