diff --git a/src/Service/AbstractDatabase.php b/src/Service/AbstractDatabase.php index 1c9944a..e9dbccc 100644 --- a/src/Service/AbstractDatabase.php +++ b/src/Service/AbstractDatabase.php @@ -218,7 +218,7 @@ private static function absolutePath(string $file): string * Ask confirmation to user (y/n), unless if we are really sure that we are in local development, * or if command argument `--no-interaction` is given. * - * If the user does not confirm, the program will exist immediately. + * If the user does not confirm, the program will exit immediately. */ public static function confirm(string $question): void { @@ -242,7 +242,7 @@ public static function confirm(string $question): void $confirm = readline() ?: ''; if (!preg_match('/^y(es)?$/', $confirm)) { - exit(); + exit(1); } } }