tkurbad-overlay/dev-php/andig-dbcopy/files/andig-dbcopy-symfony.patch

94 lines
4.3 KiB
Diff

diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/AbstractCommand.php andig-dbcopy-9999/src/Command/AbstractCommand.php
--- andig-dbcopy-9999.orig/src/Command/AbstractCommand.php 2025-10-08 12:18:06.015740519 +0200
+++ andig-dbcopy-9999/src/Command/AbstractCommand.php 2025-10-08 12:15:14.368364947 +0200
@@ -62,7 +62,7 @@
return $tables;
}
- protected function execute(InputInterface $input, OutputInterface $output) {
+ protected function execute(InputInterface $input, OutputInterface $output): int {
$this->output = $output;
$this->loadConfig($input);
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/ClearCommand.php andig-dbcopy-9999/src/Command/ClearCommand.php
--- andig-dbcopy-9999.orig/src/Command/ClearCommand.php 2025-10-08 12:18:06.015894342 +0200
+++ andig-dbcopy-9999/src/Command/ClearCommand.php 2025-10-08 12:16:40.736281429 +0200
@@ -32,7 +32,7 @@
return in_array($tableName, $tables);
}
- protected function execute(InputInterface $input, OutputInterface $output) {
+ protected function execute(InputInterface $input, OutputInterface $output): int {
parent::execute($input, $output);
// make sure schemas exists
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/CopyCommand.php andig-dbcopy-9999/src/Command/CopyCommand.php
--- andig-dbcopy-9999.orig/src/Command/CopyCommand.php 2025-10-08 12:18:06.015894342 +0200
+++ andig-dbcopy-9999/src/Command/CopyCommand.php 2025-10-08 12:15:44.816329227 +0200
@@ -172,7 +172,7 @@
echo "\n\n"; // CRLF after progressbar @ 100%
}
- protected function execute(InputInterface $input, OutputInterface $output)
+ protected function execute(InputInterface $input, OutputInterface $output): int
{
parent::execute($input, $output);
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/CreateCommand.php andig-dbcopy-9999/src/Command/CreateCommand.php
--- andig-dbcopy-9999.orig/src/Command/CreateCommand.php 2025-10-08 12:18:06.015894342 +0200
+++ andig-dbcopy-9999/src/Command/CreateCommand.php 2025-10-08 12:16:08.404301546 +0200
@@ -100,7 +100,7 @@
}
}
- protected function execute(InputInterface $input, OutputInterface $output) {
+ protected function execute(InputInterface $input, OutputInterface $output): int {
parent::execute($input, $output);
// make sure schemas exists
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/DropCommand.php andig-dbcopy-9999/src/Command/DropCommand.php
--- andig-dbcopy-9999.orig/src/Command/DropCommand.php 2025-10-08 12:18:06.015894342 +0200
+++ andig-dbcopy-9999/src/Command/DropCommand.php 2025-10-08 12:16:26.196289368 +0200
@@ -17,7 +17,7 @@
->addOption('config', 'c', InputOption::VALUE_REQUIRED, 'Config file');
}
- protected function execute(InputInterface $input, OutputInterface $output) {
+ protected function execute(InputInterface $input, OutputInterface $output): int {
parent::execute($input, $output);
// make sure schemas exists
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/InfluxCommand.php andig-dbcopy-9999/src/Command/InfluxCommand.php
--- andig-dbcopy-9999.orig/src/Command/InfluxCommand.php 2025-10-08 12:18:06.015894342 +0200
+++ andig-dbcopy-9999/src/Command/InfluxCommand.php 2025-10-08 12:17:22.156258843 +0200
@@ -173,7 +173,7 @@
} while (count($res) == $this->batch);
}
- protected function execute(InputInterface $input, OutputInterface $output) {
+ protected function execute(InputInterface $input, OutputInterface $output): int {
$this->loadConfig($input);
// Doctrine PDO
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/ConsoleApplication.php andig-dbcopy-9999/src/ConsoleApplication.php
--- andig-dbcopy-9999.orig/src/ConsoleApplication.php 2025-10-08 12:18:06.015894342 +0200
+++ andig-dbcopy-9999/src/ConsoleApplication.php 2025-10-08 12:14:06.764444254 +0200
@@ -32,7 +32,7 @@
*
* @return string The long application version
*/
- public function getLongVersion()
+ public function getLongVersion(): string
{
if ('UNKNOWN' !== $this->getName()) {
return sprintf('<info>%s</info>', $this->getName());
@@ -45,7 +45,7 @@
*
* @return InputDefinition An InputDefinition instance
*/
- protected function getDefaultInputDefinition()
+ protected function getDefaultInputDefinition(): InputDefinition
{
return new InputDefinition(array(
new InputArgument('command', InputArgument::REQUIRED, 'The command to execute'),