1
0
Fork 0

Minor cleanup

pull/10186/head
Jordi Boggiano 2021-10-18 23:10:11 +02:00
parent 6e04991489
commit 57e417b53a
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 4 additions and 4 deletions

View File

@ -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();