public function isCausedByLock(RepositorySet $repositorySet, Request $request, Pool $pool)
{
foreach ($this->reasons as $sectionRules) {
@ -153,6 +157,8 @@ class Problem
}
}
}
return false;
}
/**
@ -160,6 +166,8 @@ class Problem
*
* @param string $id A canonical identifier for the reason
* @param Rule $reason The reason descriptor
*
* @return void
*/
protected function addReason($id, Rule $reason)
{
@ -172,6 +180,9 @@ class Problem
}
}
/**
* @return void
*/
public function nextSection()
{
$this->section++;
@ -179,6 +190,7 @@ class Problem
/**
* @internal
* @return array{0: string, 1: string}
*/
public static function getMissingPackageReason(RepositorySet $repositorySet, Request $request, Pool $pool, $isVerbose, $packageName, $constraint = null)
{
@ -331,6 +343,7 @@ class Problem
/**
* @internal
* @return string
*/
public static function getPackageList(array $packages, $isVerbose)
{
@ -360,6 +373,11 @@ class Problem
return implode(', ', $prepared);
}
/**
* @param string $version
* @param string $packageName
* @return string
*/
private static function getPlatformPackageVersion(Pool $pool, $packageName, $version)
{
$available = $pool->whatProvides($packageName);
@ -410,6 +428,9 @@ class Problem
return $filtered;
}
/**
* @return bool
*/
private static function hasMultipleNames(array $packages)
@ -40,6 +40,9 @@ class SolverProblemsException extends \RuntimeException
parent::__construct('Failed resolving dependencies with '.count($problems).' problems, call getPrettyString to get formatted details', self::ERROR_DEPENDENCY_RESOLUTION_FAILED);
}
/**
* @return string
*/
public function getPrettyString(RepositorySet $repositorySet, Request $request, Pool $pool, $isVerbose, $isDevExtraction = false)
{
$installedMap = $request->getPresentMap(true);
@ -54,7 +57,7 @@ class SolverProblemsException extends \RuntimeException