Skip to content

Commit 1889d75

Browse files
committed
ACP2E-1531: Data Migration Tool 2.4.5 with PHP 8.1 compatibility issues
1 parent 148cd11 commit 1889d75

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/Migration/Console/MigrateDataCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Migration\Console;
77

8+
use Symfony\Component\Console\Command\Command;
89
use Symfony\Component\Console\Input\InputInterface;
910
use Symfony\Component\Console\Output\OutputInterface;
1011

@@ -57,5 +58,6 @@ protected function configure()
5758
protected function execute(InputInterface $input, OutputInterface $output)
5859
{
5960
$this->dataMode->run();
61+
return Command::SUCCESS;
6062
}
6163
}

src/Migration/Console/MigrateDeltaCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Migration\Console;
77

8+
use Symfony\Component\Console\Command\Command;
89
use Symfony\Component\Console\Input\InputInterface;
910
use Symfony\Component\Console\Output\OutputInterface;
1011

@@ -57,6 +58,7 @@ protected function configure()
5758
protected function execute(InputInterface $input, OutputInterface $output)
5859
{
5960
$this->deltaMode->run();
61+
return Command::SUCCESS;
6062
}
6163

6264
/**

src/Migration/Console/MigrateSettingsCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Migration\Console;
77

8+
use Symfony\Component\Console\Command\Command;
89
use Symfony\Component\Console\Input\InputInterface;
910
use Symfony\Component\Console\Output\OutputInterface;
1011

@@ -54,8 +55,9 @@ protected function configure()
5455
/**
5556
* @inheritdoc
5657
*/
57-
protected function execute(InputInterface $input, OutputInterface $output)
58+
protected function execute(InputInterface $input, OutputInterface $output): int
5859
{
5960
$this->settingsMode->run();
61+
return Command::SUCCESS;
6062
}
6163
}

0 commit comments

Comments
 (0)