mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Fix detection of fixed package problems to include more cases, fixes #8910
This commit is contained in:
parent
106289e5dc
commit
98e5f81a5f
9 changed files with 58 additions and 11 deletions
|
@ -45,7 +45,7 @@ class SolverProblemsException extends \RuntimeException
|
|||
$hasExtensionProblems = true;
|
||||
}
|
||||
|
||||
$isCausedByLock |= $problem->isCausedByLock();
|
||||
$isCausedByLock |= $problem->isCausedByLock($repositorySet, $request, $pool);
|
||||
}
|
||||
|
||||
$i = 1;
|
||||
|
@ -63,7 +63,7 @@ class SolverProblemsException extends \RuntimeException
|
|||
}
|
||||
|
||||
if ($isCausedByLock && !$isDevExtraction) {
|
||||
$text .= "\nUse the option --with-all-dependencies to allow updates and removals for packages currently locked to specific versions.";
|
||||
$text .= "\nUse the option --with-all-dependencies to allow upgrades, downgrades and removals for packages currently locked to specific versions.";
|
||||
}
|
||||
|
||||
if (strpos($text, 'found composer-plugin-api[2.0.0] but it does not match') && strpos($text, '- ocramius/package-versions')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue