1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 09:02:59 +00:00

Reaching phpstan level 6 in Composer/DependencyResolver (refs #10159) (#10178)

This commit is contained in:
immeëmosol 2021-10-18 22:33:37 +02:00 committed by GitHub
parent 04ab74bbef
commit 50d738eeee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 292 additions and 113 deletions

View file

@ -14,7 +14,6 @@ namespace Composer\DependencyResolver;
use Composer\Util\IniHelper;
use Composer\Repository\RepositorySet;
use Composer\Package\PackageInterface;
/**
* @author Nils Adermann <naderman@naderman.de>
@ -29,7 +28,7 @@ class SolverProblemsException extends \RuntimeException
protected $learnedPool;
/**
* @param Problem[] $problems
* @param Problem[] $problems
* @param array<Rule[]> $learnedPool
*/
public function __construct(array $problems, array $learnedPool)
@ -41,6 +40,8 @@ class SolverProblemsException extends \RuntimeException
}
/**
* @param bool $isVerbose
* @param bool $isDevExtraction
* @return string
*/
public function getPrettyString(RepositorySet $repositorySet, Request $request, Pool $pool, $isVerbose, $isDevExtraction = false)
@ -123,6 +124,7 @@ class SolverProblemsException extends \RuntimeException
}
/**
* @param Rule[][] $reasonSets
* @return bool
*/
private function hasExtensionProblems(array $reasonSets)