From 4a2ea3c67aa49a3dce68ef5a56614e1941d68965 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 25 Jun 2020 09:16:23 +0200 Subject: [PATCH] Fix var name --- src/Composer/Command/FundCommand.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Composer/Command/FundCommand.php b/src/Composer/Command/FundCommand.php index a5c4dfc02..045eb5051 100644 --- a/src/Composer/Command/FundCommand.php +++ b/src/Composer/Command/FundCommand.php @@ -54,15 +54,15 @@ class FundCommand extends BaseCommand $result = $remoteRepos->loadPackages($packagesToLoad, array('dev' => BasePackage::STABILITY_DEV), array()); // collect funding data from default branches - foreach ($result['packages'] as $pkg) { + foreach ($result['packages'] as $package) { if ( - !$pkg instanceof AliasPackage - && $pkg instanceof CompletePackageInterface - && $pkg->isDefaultBranch() - && $pkg->getFunding() - && isset($packagesToLoad[$pkg->getName()]) + !$package instanceof AliasPackage + && $package instanceof CompletePackageInterface + && $package->isDefaultBranch() + && $package->getFunding() + && isset($packagesToLoad[$package->getName()]) ) { - $fundings = $this->insertFundingData($fundings, $pkg); + $fundings = $this->insertFundingData($fundings, $package); unset($packagesToLoad[$package->getName()]); } }