From 18b8dd4b1bd513f53834f89f8c1734982bde7d68 Mon Sep 17 00:00:00 2001 From: Santeri Hurnanen Date: Tue, 17 Dec 2024 11:38:27 +0200 Subject: [PATCH] UHF-10713: Add phpstan/extension-installer to composer allow-plugins --- src/Update/migrations.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Update/migrations.php b/src/Update/migrations.php index 6eefdc5..bd4ee0f 100644 --- a/src/Update/migrations.php +++ b/src/Update/migrations.php @@ -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', + ]); +}