1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 00:53:06 +00:00

Improve solver error reporting, fixes #5086, fixes #2575, fixes #2661

This commit is contained in:
Jordi Boggiano 2016-03-27 18:39:36 +01:00
parent 37a1e12672
commit 623c0dcda7
4 changed files with 44 additions and 15 deletions

View file

@ -230,6 +230,10 @@ class Rule
return $text . ' -> the requested linked library '.$lib.' has the wrong version installed or is missing from your system, make sure to have the extension providing it.';
} else {
if ($providers = $pool->whatProvides($targetName, $this->reasonData->getConstraint(), true, true)) {
return $text . ' -> satisfiable by ' . $this->formatPackagesUnique($pool, $providers) .' but these conflict with your requirements or minimum-stability';
}
return $text . ' -> no matching package found.';
}
}