Skip to content

Commit

Permalink
Fixed license package
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianKresse committed Dec 18, 2019
1 parent 68f4da5 commit ef12250
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/InstallerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ public function onInstallOrUpdate(PackageEvent $event)
$packageName = $package->getName();

$licensePackages = [];
foreach ($this->lookForIoncubeLicenses($event->getInstalledRepo()) as $package) {
$licenseValidFor = $package->getExtra()['licenseValidFor'];
foreach ($this->lookForIoncubeLicenses($event->getInstalledRepo()) as $licensePackage) {
$licenseValidFor = $licensePackage->getExtra()['licenseValidFor'];
foreach ($licenseValidFor as $validFor) {
if ($validFor !== $packageName) {
continue;
}
$licensePackages[] = $package;
$licensePackages[] = $licensePackage;
}
}

Expand Down

0 comments on commit ef12250

Please sign in to comment.