Skip to content

Commit 4d82a47

Browse files
jlslewnicolas-grekas
authored andcommitted
Fix file_get_content exception when installing symfony 4.3-dev
1 parent 7417aba commit 4d82a47

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)