Minor cleanup

main
Jordi Boggiano 3 years ago
parent 6e04991489
commit 57e417b53a
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -115,12 +115,12 @@ class Pool implements \Countable
}
/**
* @param string $name The package name to be searched for
* @param ConstraintInterface $constraint A constraint that all returned
* packages must match or null to return all
* @param string $name The package name to be searched for
* @param ?ConstraintInterface $constraint A constraint that all returned
* packages must match or null to return all
* @return BasePackage[]
*/
private function computeWhatProvides($name, $constraint)
private function computeWhatProvides($name, ConstraintInterface $constraint = null)
{
if (!isset($this->packageByName[$name])) {
return array();

Loading…
Cancel
Save