diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 16e1f8167c..c5e7244393 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,7 +25,7 @@ cache: &global_cache
.before_script_test_template: &before_script_test_configuration
# import test DB
- - mysql -h mysql -u root -proot ci_test < tests/data/test_db.sql
+ - mysql -h mysql -u root -proot ci_test --ssl-verify-server-cert=false < tests/data/test_db.sql
# make sure bundle.js exists
- touch src/Frontend/Core/Js/bundle.js
# generate correct parameters.yml
diff --git a/php.ini b/php.ini
new file mode 100644
index 0000000000..108ab4c182
--- /dev/null
+++ b/php.ini
@@ -0,0 +1 @@
+error_reporting=E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED
diff --git a/src/Backend/Modules/MediaGalleries/Console/MediaGalleryDeleteAllCommand.php b/src/Backend/Modules/MediaGalleries/Console/MediaGalleryDeleteAllCommand.php
index 6aed6fe807..6489e1a8a2 100644
--- a/src/Backend/Modules/MediaGalleries/Console/MediaGalleryDeleteAllCommand.php
+++ b/src/Backend/Modules/MediaGalleries/Console/MediaGalleryDeleteAllCommand.php
@@ -45,7 +45,7 @@ protected function configure(): void
);
}
- protected function execute(InputInterface $input, OutputInterface $output): void
+ protected function execute(InputInterface $input, OutputInterface $output): int
{
$output->writeln('-Started deleting media galleries.');
@@ -53,6 +53,8 @@ protected function execute(InputInterface $input, OutputInterface $output): void
$this->deleteMediaGalleries();
$output->writeln('-Finished deleting media galleries.');
+
+ return Command::SUCCESS;
}
private function checkOptions(InputInterface $input): void
diff --git a/src/Backend/Modules/MediaLibrary/Console/CacheClearCommand.php b/src/Backend/Modules/MediaLibrary/Console/CacheClearCommand.php
index efe33a55bd..e0d9961c3d 100644
--- a/src/Backend/Modules/MediaLibrary/Console/CacheClearCommand.php
+++ b/src/Backend/Modules/MediaLibrary/Console/CacheClearCommand.php
@@ -42,11 +42,13 @@ protected function configure(): void
);
}
- protected function execute(InputInterface $input, OutputInterface $output): void
+ protected function execute(InputInterface $input, OutputInterface $output): int
{
$this->checkOptions($input);
$this->deleteCachedFolders();
$output->writeln('' . $this->getMessage() . '');
+
+ return Command::SUCCESS;
}
private function checkOptions(InputInterface $input): void
diff --git a/src/Backend/Modules/Users/Console/ResetPasswordCommand.php b/src/Backend/Modules/Users/Console/ResetPasswordCommand.php
index 1b3a6dc5d5..67cc26247a 100644
--- a/src/Backend/Modules/Users/Console/ResetPasswordCommand.php
+++ b/src/Backend/Modules/Users/Console/ResetPasswordCommand.php
@@ -21,7 +21,7 @@ protected function configure(): void
->addArgument('password', InputArgument::OPTIONAL, '(Optional) The desired new password');
}
- protected function execute(InputInterface $input, OutputInterface $output): void
+ protected function execute(InputInterface $input, OutputInterface $output): int
{
$helper = $this->getHelper('question');
@@ -41,7 +41,7 @@ protected function execute(InputInterface $input, OutputInterface $output): void
sprintf('User not found with email-address "%s".', $questionEmailAddressAnswer)
);
- return;
+ return Command::FAILURE;
}
$questionPassword = new Question('Please provide the users new desired password: ');
@@ -58,5 +58,7 @@ protected function execute(InputInterface $input, OutputInterface $output): void
);
$output->writeln('Password has been updated');
+
+ return Command::SUCCESS;
}
}
diff --git a/src/Console/Locale/EnableLocaleCommand.php b/src/Console/Locale/EnableLocaleCommand.php
index bada2c38b6..9f1307bbaf 100644
--- a/src/Console/Locale/EnableLocaleCommand.php
+++ b/src/Console/Locale/EnableLocaleCommand.php
@@ -71,7 +71,7 @@ protected function configure(): void
->setDescription('Enable a locale');
}
- protected function execute(InputInterface $input, OutputInterface $output): void
+ protected function execute(InputInterface $input, OutputInterface $output): int
{
$this->input = $input;
$this->output = $output;
@@ -85,7 +85,7 @@ protected function execute(InputInterface $input, OutputInterface $output): void
]
);
- return;
+ return Command::FAILURE;
}
$this->installedLocale = array_flip($this->settings->get('Core', 'languages'));
@@ -100,12 +100,14 @@ protected function execute(InputInterface $input, OutputInterface $output): void
$this->showLocaleOverview();
$this->selectWorkingLocale();
if (!$this->askToInstall()) {
- return;
+ return Command::FAILURE;
}
$this->askToAddInterfaceLocale();
if ($this->askToMakeTheLocaleAccessibleToVisitors()) {
$this->askToEnableTheLocaleForRedirecting();
}
+
+ return Command::SUCCESS;
}
private function askToEnableTheLocaleForRedirecting(): void
diff --git a/src/Console/Locale/ImportLocaleCommand.php b/src/Console/Locale/ImportLocaleCommand.php
index 13cd012c8d..c744faa8f7 100644
--- a/src/Console/Locale/ImportLocaleCommand.php
+++ b/src/Console/Locale/ImportLocaleCommand.php
@@ -25,7 +25,7 @@ protected function configure(): void
->addOption('locale', 'l', InputOption::VALUE_OPTIONAL, 'Only install for a specific locale');
}
- protected function execute(InputInterface $input, OutputInterface $output): void
+ protected function execute(InputInterface $input, OutputInterface $output): int
{
// Get input values
$fileOption = $input->getOption('file');
@@ -48,6 +48,8 @@ protected function execute(InputInterface $input, OutputInterface $output): void
// Import locale
$output->writeln('Importing locale....');
$this->importLocale($localePath, $overwriteOption, $output, $localeOption);
+
+ return Command::SUCCESS;
}
private function importLocale(
diff --git a/src/Console/Thumbnails/GenerateThumbnailsCommand.php b/src/Console/Thumbnails/GenerateThumbnailsCommand.php
index e2fa661d09..d40ab077f0 100644
--- a/src/Console/Thumbnails/GenerateThumbnailsCommand.php
+++ b/src/Console/Thumbnails/GenerateThumbnailsCommand.php
@@ -43,7 +43,7 @@ public function __construct(private readonly Thumbnails $thumbnails)
parent::__construct();
}
- protected function execute(InputInterface $input, OutputInterface $output): void
+ protected function execute(InputInterface $input, OutputInterface $output): int
{
$style = new SymfonyStyle($input, $output);
@@ -51,6 +51,8 @@ protected function execute(InputInterface $input, OutputInterface $output): void
$this->retrieveSourceFilesAndDestinationFolders($input, $output);
$this->generateThumbnails($input, $output);
+
+ return Command::SUCCESS;
}
private function generateThumbnails(InputInterface $input, OutputInterface $output): void
diff --git a/src/ForkCMS/Bundle/InstallerBundle/Console/InstallModuleCommand.php b/src/ForkCMS/Bundle/InstallerBundle/Console/InstallModuleCommand.php
index 3dcbb1739c..cd2aa31f7a 100644
--- a/src/ForkCMS/Bundle/InstallerBundle/Console/InstallModuleCommand.php
+++ b/src/ForkCMS/Bundle/InstallerBundle/Console/InstallModuleCommand.php
@@ -46,7 +46,7 @@ protected function configure(): void
->addArgument('module', InputArgument::OPTIONAL, 'Name of the module to install');
}
- protected function execute(InputInterface $input, OutputInterface $output): void
+ protected function execute(InputInterface $input, OutputInterface $output): int
{
$this->formatter = new SymfonyStyle($input, $output);
$module = $this->getModuleToInstall($input, $output);
@@ -74,6 +74,8 @@ protected function execute(InputInterface $input, OutputInterface $output): void
$output->writeln("Module $module is installed succesfully 🎉!");
}
+
+ return Command::SUCCESS;
}
/**