Skip to content

Commit

Permalink
Prevent fatal error on reserved keywords as migration names.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Nov 29, 2024
1 parent a52db17 commit d5c243a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Command/BakeSimpleMigrationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ public function bake(string $name, Arguments $args, ConsoleIo $io): void
$this->io = $io;
$this->args = $args;
if ($this->isReservedKeyword($name)) {
$prefix = $io->ask('Reserved keywords cannot be used for class names. What prefix would you like to use, defaults to `Migration`', 'Migration');
$prefix = $io->ask('Reserved keywords cannot be used for class names. What prefix would you like to use? Defaults to `Migration`.', 'Migration');
if (!$prefix) {
$io->err('You must provide a prefix when using a reserved keyword as name');
$io->err('You must provide a prefix when using a reserved keyword as name.');
$this->abort();
}

Expand Down

0 comments on commit d5c243a

Please sign in to comment.