Minor cleanup
parent
6e04991489
commit
57e417b53a
|
@ -115,12 +115,12 @@ class Pool implements \Countable
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $name The package name to be searched for
|
* @param string $name The package name to be searched for
|
||||||
* @param ConstraintInterface $constraint A constraint that all returned
|
* @param ?ConstraintInterface $constraint A constraint that all returned
|
||||||
* packages must match or null to return all
|
* packages must match or null to return all
|
||||||
* @return BasePackage[]
|
* @return BasePackage[]
|
||||||
*/
|
*/
|
||||||
private function computeWhatProvides($name, $constraint)
|
private function computeWhatProvides($name, ConstraintInterface $constraint = null)
|
||||||
{
|
{
|
||||||
if (!isset($this->packageByName[$name])) {
|
if (!isset($this->packageByName[$name])) {
|
||||||
return array();
|
return array();
|
||||||
|
|
Loading…
Reference in New Issue