Skip to content

Commit

Permalink
Fixed error in install/update event
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianKresse committed Sep 14, 2020
1 parent 59c61f8 commit 97bcc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InstallerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function onInstallOrUpdate(PackageEvent $event)
$packageName = $package->getName();

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

0 comments on commit 97bcc0a

Please sign in to comment.