Skip to content

Commit 9de145d

Browse files
committed
read json after manipulate
1 parent 6f4e9ca commit 9de145d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Unpacker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ public function unpack(Operation $op, Result $result = null): Result
115115
public function updateLock(Result $result, IOInterface $io): void
116116
{
117117
$json = new JsonFile(Factory::getComposerFile());
118-
$jsonContent = file_get_contents($json->getPath());
119118
$manipulator = new JsonConfigSource($json);
120119
$locker = $this->composer->getLocker();
121120
$lockData = $locker->getLockData();
@@ -134,6 +133,7 @@ public function updateLock(Result $result, IOInterface $io): void
134133
}
135134
}
136135
}
136+
$jsonContent = file_get_contents($json->getPath());
137137
$lockData['packages'] = array_values($lockData['packages']);
138138
$lockData['packages-dev'] = array_values($lockData['packages-dev']);
139139
$lockData['content-hash'] = $locker->getContentHash($jsonContent);

0 commit comments

Comments
 (0)