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), ); }