|
@@ -31,7 +31,7 @@ class SolverProblemsException extends \RuntimeException
|
|
parent::__construct('Failed resolving dependencies with '.count($problems).' problems, call getPrettyString to get formatted details', 2);
|
|
parent::__construct('Failed resolving dependencies with '.count($problems).' problems, call getPrettyString to get formatted details', 2);
|
|
}
|
|
}
|
|
|
|
|
|
- public function getPrettyString(RepositorySet $repositorySet, Request $request, Pool $pool)
|
|
|
|
|
|
+ public function getPrettyString(RepositorySet $repositorySet, Request $request, Pool $pool, $isDevExtraction = false)
|
|
{
|
|
{
|
|
$installedMap = $request->getPresentMap(true);
|
|
$installedMap = $request->getPresentMap(true);
|
|
$text = "\n";
|
|
$text = "\n";
|
|
@@ -44,7 +44,7 @@ class SolverProblemsException extends \RuntimeException
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if (strpos($text, 'could not be found') || strpos($text, 'no matching package found')) {
|
|
|
|
|
|
+ if (!$isDevExtraction && (strpos($text, 'could not be found') || strpos($text, 'no matching package found'))) {
|
|
$text .= "\nPotential causes:\n - A typo in the package name\n - The package is not available in a stable-enough version according to your minimum-stability setting\n see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.\n - It's a private package and you forgot to add a custom repository to find it\n\nRead <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.";
|
|
$text .= "\nPotential causes:\n - A typo in the package name\n - The package is not available in a stable-enough version according to your minimum-stability setting\n see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.\n - It's a private package and you forgot to add a custom repository to find it\n\nRead <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.";
|
|
}
|
|
}
|
|
|
|
|