|
@@ -82,6 +82,10 @@ EOT
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (file_get_contents($file) === '') {
|
|
|
|
+ file_put_contents($file, "{\n}\n");
|
|
|
|
+ }
|
|
|
|
+
|
|
$json = new JsonFile($file);
|
|
$json = new JsonFile($file);
|
|
$composerDefinition = $json->read();
|
|
$composerDefinition = $json->read();
|
|
$composerBackup = file_get_contents($json->getPath());
|
|
$composerBackup = file_get_contents($json->getPath());
|