From d5d956df4d9d8356d8192972f3a33399e704a5a3 Mon Sep 17 00:00:00 2001 From: Jonas Drieghe Date: Tue, 23 Jun 2020 19:50:27 +0200 Subject: [PATCH] Use correct variable name --- src/Composer/Command/LicensesCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/LicensesCommand.php b/src/Composer/Command/LicensesCommand.php index 2147e3aef..dd0de2d8a 100644 --- a/src/Composer/Command/LicensesCommand.php +++ b/src/Composer/Command/LicensesCommand.php @@ -124,7 +124,7 @@ EOT } // Sort licenses so that the most used license will appear first - arsort($dependencies, SORT_NUMERIC); + arsort($usedLicenses, SORT_NUMERIC); $rows = array(); foreach ($usedLicenses as $usedLicense => $numberOfDependencies) {