1
0
Fork 0

Fixed map initialization

pull/8438/head
Michael Thessel 2019-11-21 10:08:09 -08:00
parent f8010d5220
commit 96af983700
1 changed files with 2 additions and 1 deletions

View File

@ -122,7 +122,8 @@ class ArrayRepository extends BaseRepository
*/
public function hasPackage(PackageInterface $package)
{
if (empty($this->packageMap)) {
if ($this->packageMap === null) {
$this->packageMap = array();
foreach ($this->getPackages() as $repoPackage) {
$this->packageMap[$repoPackage->getUniqueName()] = $repoPackage;
}