diff --git a/src/Configurator/AbstractConfigurator.php b/src/Configurator/AbstractConfigurator.php index ba654aa0f..7f47fa9b0 100644 --- a/src/Configurator/AbstractConfigurator.php +++ b/src/Configurator/AbstractConfigurator.php @@ -75,6 +75,10 @@ protected function markXmlData(Recipe $recipe, string $data): string */ protected function updateData(string $file, string $data): bool { + if (!file_exists($file)) { + return false; + } + $pieces = explode("\n", trim($data)); $startMark = trim(reset($pieces)); $endMark = trim(end($pieces));