Skip to content

Commit 87d511b

Browse files
bug #472 Fix file_get_content exception when installing symfony 4.3-dev (jlslew)
This PR was merged into the 1.2-dev branch. Discussion ---------- Fix file_get_content exception when installing symfony 4.3-dev For more information, see issue [#523](symfony/recipes#523) from the symfony/recipes repo. Commits ------- 4d82a47 Fix file_get_content exception when installing symfony 4.3-dev
2 parents 7417aba + 4d82a47 commit 87d511b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Configurator/AbstractConfigurator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ protected function markXmlData(Recipe $recipe, string $data): string
7575
*/
7676
protected function updateData(string $file, string $data): bool
7777
{
78+
if (!file_exists($file)) {
79+
return false;
80+
}
81+
7882
$pieces = explode("\n", trim($data));
7983
$startMark = trim(reset($pieces));
8084
$endMark = trim(end($pieces));

0 commit comments

Comments
 (0)