From 8d5bdaf443ed924cf49a1981b5c566020d0d1beb Mon Sep 17 00:00:00 2001 From: Sam Litowitz Date: Wed, 13 Jul 2022 09:19:35 -0400 Subject: [PATCH] Fixes #10938: Do not display duplicate ignore extension hints --- src/Composer/DependencyResolver/SolverProblemsException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/DependencyResolver/SolverProblemsException.php b/src/Composer/DependencyResolver/SolverProblemsException.php index deaec7d24..33a122ad9 100644 --- a/src/Composer/DependencyResolver/SolverProblemsException.php +++ b/src/Composer/DependencyResolver/SolverProblemsException.php @@ -119,7 +119,7 @@ class SolverProblemsException extends \RuntimeException $ignoreExtensionsArguments = implode(" ", array_map(function ($extension) { return "--ignore-platform-req=$extension"; - }, $missingExtensions)); + }, array_unique($missingExtensions))); $text = "To enable extensions, verify that they are enabled in your .ini files:\n - "; $text .= implode("\n - ", $paths);