We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6592349 commit 7e8967aCopy full SHA for 7e8967a
src/PackageJsonSynchronizer.php
@@ -296,7 +296,12 @@ private function updateControllersJsonFile(array $phpPackages)
296
return;
297
}
298
299
- $previousControllersJson = (new JsonFile($controllersJsonPath))->read();
+ try {
300
+ $previousControllersJson = (new JsonFile($controllersJsonPath))->read();
301
+ } catch (ParsingException $e) {
302
+ // if controllers.json is invalid (possible during a recipe upgrade), we can't update the file
303
+ return;
304
+ }
305
$newControllersJson = [
306
'controllers' => [],
307
'entrypoints' => $previousControllersJson['entrypoints'],
0 commit comments