Skip to content

Commit 4552e2e

Browse files
committed
Symfony 7 compatibility
1 parent 2b9837c commit 4552e2e

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/UpdaterCommand.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
* Updates drupal modules and packages.
1616
*/
1717
class UpdaterCommand extends Command {
18-
19-
protected static $defaultName = 'update';
20-
2118
/**
2219
* Prints the output of the command.
2320
*
@@ -69,6 +66,17 @@ class UpdaterCommand extends Command {
6966

7067
protected bool $showFullReport = TRUE;
7168

69+
/**
70+
* {@inheritdoc}
71+
*/
72+
public function __construct(?string $name = null)
73+
{
74+
if (empty($name)) {
75+
$name = 'update';
76+
}
77+
parent::__construct($name);
78+
}
79+
7280
/**
7381
* {@inheritdoc}
7482
*/
@@ -116,7 +124,7 @@ protected function initialize(InputInterface $input, OutputInterface $output) {
116124
/**
117125
* {@inheritdoc}
118126
*/
119-
protected function execute(InputInterface $input, OutputInterface $output) {
127+
protected function execute(InputInterface $input, OutputInterface $output) : int {
120128
$this->runCommand('cp composer.lock composer.drupalupdater.lock');
121129
$this->printSummary();
122130
$this->printHeader1('1. Consolidating configuration');

0 commit comments

Comments
 (0)