Skip to content

Commit

Permalink
Merge pull request #45 from City-of-Helsinki/UHF-10713
Browse files Browse the repository at this point in the history
UHF-10713: Add phpstan/extension-installer to composer allow-plugins
  • Loading branch information
hyrsky authored Dec 17, 2024
2 parents 5afd7bd + 18b8dd4 commit 2eb037b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Update/migrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,3 +272,18 @@ function drupal_tools_update_13() : UpdateResult {
'Removed direct dependency to ' . implode(', ', $remove),
]);
}

/**
* Allow phpstan/extension-installer. This was accidentally removed update 13.
*/
function drupal_tools_update_14() : UpdateResult {
// Ensure drupal/core-dev is required.
(new Process([
'composer', 'config', 'allow-plugins.phpstan/extension-installer', 'true', '--no-interaction',
]))
->run();

return new UpdateResult([
'Added phpstan/extension-installer to allow-plugins',
]);
}

0 comments on commit 2eb037b

Please sign in to comment.