From a97448a5a6ae003fc948a859cf892f737a04c157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Wed, 10 Aug 2022 08:50:33 +0200 Subject: [PATCH] Fix: Rename variable --- src/Vendor/Composer/ConfigHashNormalizer.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Vendor/Composer/ConfigHashNormalizer.php b/src/Vendor/Composer/ConfigHashNormalizer.php index cf209d82..7f99c6b7 100644 --- a/src/Vendor/Composer/ConfigHashNormalizer.php +++ b/src/Vendor/Composer/ConfigHashNormalizer.php @@ -81,20 +81,20 @@ private static function sortByKey( ); }); - $names = \array_keys($sorted); + $keys = \array_keys($sorted); return \array_combine( - $names, - \array_map(static function ($value, string $name) use ($propertyPath) { + $keys, + \array_map(static function ($value, string $key) use ($propertyPath) { return self::sortByKey( \sprintf( '%s.%s', $propertyPath, - $name, + $key, ), $value, ); - }, $sorted, $names), + }, $sorted, $keys), ); }