Yaffs site version 1.1
[yaffs-website] / vendor / drupal / console / src / Command / Generate / PostUpdateCommand.php
index 0a0fba1ad38393bd6d93b059ae19f89dfea91570..180a70c0d34129bfb74152a93c7846ee2564f1f7 100644 (file)
@@ -89,13 +89,13 @@ class PostUpdateCommand extends Command
             ->setHelp($this->trans('commands.generate.post.update.help'))
             ->addOption(
                 'module',
-                '',
+                null,
                 InputOption::VALUE_REQUIRED,
                 $this->trans('commands.common.options.module')
             )
             ->addOption(
                 'post-update-name',
-                '',
+                null,
                 InputOption::VALUE_REQUIRED,
                 $this->trans('commands.generate.post.update.options.post-update-name')
             );
@@ -110,7 +110,7 @@ class PostUpdateCommand extends Command
 
         // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmGeneration
         if (!$this->confirmGeneration($io)) {
-            return;
+            return 1;
         }
 
         $module = $input->getOption('module');
@@ -121,6 +121,8 @@ class PostUpdateCommand extends Command
         $this->generator->generate($module, $postUpdateName);
 
         $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery']);
+
+        return 0;
     }
 
     protected function interact(InputInterface $input, OutputInterface $output)