diff --git a/src/Composer/DependencyResolver/SolverProblemsException.php b/src/Composer/DependencyResolver/SolverProblemsException.php index ea8c86af5..1a28f288b 100644 --- a/src/Composer/DependencyResolver/SolverProblemsException.php +++ b/src/Composer/DependencyResolver/SolverProblemsException.php @@ -113,8 +113,12 @@ class SolverProblemsException extends \RuntimeException { $paths = IniHelper::getAll(); - if (count($paths) === 1 && empty($paths[0])) { - return ''; + if ('' === $paths[0]) { + if (count($paths) === 1) { + return ''; + } + + array_shift($paths); } $ignoreExtensionsArguments = implode(" ", array_map(function ($extension) {