Skip to content

Commit

Permalink
Symfony 7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
omarlopesino committed Oct 4, 2024
1 parent 2b9837c commit 4552e2e
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/UpdaterCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
* Updates drupal modules and packages.
*/
class UpdaterCommand extends Command {

protected static $defaultName = 'update';

/**
* Prints the output of the command.
*
Expand Down Expand Up @@ -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}
*/
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 4552e2e

Please sign in to comment.