diff --git a/src/UpdaterCommand.php b/src/UpdaterCommand.php index d089f7f..b410c9b 100644 --- a/src/UpdaterCommand.php +++ b/src/UpdaterCommand.php @@ -15,9 +15,6 @@ * Updates drupal modules and packages. */ class UpdaterCommand extends Command { - - protected static $defaultName = 'update'; - /** * Prints the output of the command. * @@ -69,6 +66,17 @@ class UpdaterCommand extends Command { protected bool $showFullReport = TRUE; + /** + * {@inheritdoc} + */ + public function __construct(?string $name = null) + { + if (empty($name)) { + $name = 'update'; + } + parent::__construct($name); + } + /** * {@inheritdoc} */ @@ -116,7 +124,7 @@ protected function initialize(InputInterface $input, OutputInterface $output) { /** * {@inheritdoc} */ - protected function execute(InputInterface $input, OutputInterface $output) { + protected function execute(InputInterface $input, OutputInterface $output) : int { $this->runCommand('cp composer.lock composer.drupalupdater.lock'); $this->printSummary(); $this->printHeader1('1. Consolidating configuration');