|
$jsonPath = ltrim(str_replace($recipeUpdate->getRootDir(), '', $json->getPath()), '/\\'); |
In case when root dir = ".", it replaces the dot in filename, and then applying the patch is broken with:
NOTE:
The file composerjson was not updated because it doesn't exist in your app.
Reported in symfony/recipes#1271