Fixed map initialization
parent
f8010d5220
commit
96af983700
|
@ -122,7 +122,8 @@ class ArrayRepository extends BaseRepository
|
||||||
*/
|
*/
|
||||||
public function hasPackage(PackageInterface $package)
|
public function hasPackage(PackageInterface $package)
|
||||||
{
|
{
|
||||||
if (empty($this->packageMap)) {
|
if ($this->packageMap === null) {
|
||||||
|
$this->packageMap = array();
|
||||||
foreach ($this->getPackages() as $repoPackage) {
|
foreach ($this->getPackages() as $repoPackage) {
|
||||||
$this->packageMap[$repoPackage->getUniqueName()] = $repoPackage;
|
$this->packageMap[$repoPackage->getUniqueName()] = $repoPackage;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue