Removed blank line in missing extensions hint when having no php.ini loaded file (#10839)
parent
b025971bb8
commit
567423e9f7
|
@ -113,10 +113,14 @@ class SolverProblemsException extends \RuntimeException
|
||||||
{
|
{
|
||||||
$paths = IniHelper::getAll();
|
$paths = IniHelper::getAll();
|
||||||
|
|
||||||
if (count($paths) === 1 && empty($paths[0])) {
|
if ('' === $paths[0]) {
|
||||||
|
if (count($paths) === 1) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
array_shift($paths);
|
||||||
|
}
|
||||||
|
|
||||||
$ignoreExtensionsArguments = implode(" ", array_map(function ($extension) {
|
$ignoreExtensionsArguments = implode(" ", array_map(function ($extension) {
|
||||||
return "--ignore-platform-req=$extension";
|
return "--ignore-platform-req=$extension";
|
||||||
}, $missingExtensions));
|
}, $missingExtensions));
|
||||||
|
|
Loading…
Reference in New Issue