From fca92faed8609473fb86ffa930720e6dab0ce95a Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 5 Jul 2022 16:26:46 +0200 Subject: [PATCH] Fix type error --- src/Composer/Factory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Factory.php b/src/Composer/Factory.php index de1516f7d..9a7da447d 100644 --- a/src/Composer/Factory.php +++ b/src/Composer/Factory.php @@ -414,7 +414,7 @@ class Factory $locker = new Package\Locker($io, new JsonFile($config->get('lock') ? $lockFile : Platform::getDevNull(), null, $io), $im, file_get_contents($composerFile), $process); $composer->setLocker($locker); } elseif ($composer instanceof Composer) { - $locker = new Package\Locker($io, new JsonFile(Platform::getDevNull(), null, $io), $im, json_encode($localConfig), $process); + $locker = new Package\Locker($io, new JsonFile(Platform::getDevNull(), null, $io), $im, JsonFile::encode($localConfig), $process); $composer->setLocker($locker); }