From 3b4be8c8398af8e23a192fffaee2d2cfb05a29c8 Mon Sep 17 00:00:00 2001 From: Gemorroj Date: Wed, 15 Jul 2020 17:40:09 +0300 Subject: [PATCH] use static construction for static method https://github.com/composer/composer/blob/2.0.0-alpha2/src/Composer/Package/Locker.php#L78 https://github.com/composer/composer/blob/1.10.8/src/Composer/Package/Locker.php#L73 `Locker::getContentHash` is static method. --- src/Unpacker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Unpacker.php b/src/Unpacker.php index ac7a270d5..9ae15bea8 100644 --- a/src/Unpacker.php +++ b/src/Unpacker.php @@ -136,7 +136,7 @@ public function updateLock(Result $result, IOInterface $io): void $jsonContent = file_get_contents($json->getPath()); $lockData['packages'] = array_values($lockData['packages']); $lockData['packages-dev'] = array_values($lockData['packages-dev']); - $lockData['content-hash'] = $locker->getContentHash($jsonContent); + $lockData['content-hash'] = Locker::getContentHash($jsonContent); $lockFile = new JsonFile(substr($json->getPath(), 0, -4).'lock', null, $io); if (!$this->dryRun) {