From 30043f62d331855c1f0987af658da730a1383c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Nitzsche?= Date: Sun, 25 Jan 2026 13:34:42 +0100 Subject: [PATCH] Fix maintenance command #106 --- .php-cs-fixer.php | 14 ++++++++++++++ CHANGELOG.md | 3 +++ Classes/Command/MaintenanceCommand.php | 4 ++-- Classes/Model/Fixture.php | 4 ++-- 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 829cfa2..d9d61c7 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -23,6 +23,20 @@ 'trailing_comma_in_multiline' => [ 'elements' => ['arrays'], ], + 'no_unneeded_control_parentheses' => [ + 'statements' => [ + 'break', + 'clone', + 'continue', + 'echo_print', + 'others', + 'return', + 'switch_case', + 'yield', + 'yield_from', + // 'negative_instanceof' <-- Diese Zeile einfach weglassen + ], + ], ]) ->setLineEnding("\n") ; diff --git a/CHANGELOG.md b/CHANGELOG.md index 41a0ecd..ad66997 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ Änderungen ========== +v1.12.1 (??.0?.2026) + * fix maintencance command for PHP 8.3 (#106) + ## v1.12.0 (24.12.2025) * Support for TYPO3 13 LTS * Support for TYPO3 8 and 9 dropped diff --git a/Classes/Command/MaintenanceCommand.php b/Classes/Command/MaintenanceCommand.php index cf7127b..13f5b31 100644 --- a/Classes/Command/MaintenanceCommand.php +++ b/Classes/Command/MaintenanceCommand.php @@ -61,7 +61,7 @@ protected function configure() $this->setHelp('Maintenance operations.'); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { $this->output = $output; $style = new SymfonyStyle($input, $output); @@ -84,7 +84,7 @@ protected function execute(InputInterface $input, OutputInterface $output) return $result; } - public function updateSlug(InputInterface $input, SymfonyStyle $style, bool $force): int + private function updateSlug(InputInterface $input, SymfonyStyle $style, bool $force): int { $tableData = $this->slugTableMap[$input->getOption('table')] ?? null; if (!$tableData) { diff --git a/Classes/Model/Fixture.php b/Classes/Model/Fixture.php index 2c83b85..ac30fb9 100644 --- a/Classes/Model/Fixture.php +++ b/Classes/Model/Fixture.php @@ -609,9 +609,9 @@ public function getMatchNotesByType($type) } return $ret; - } else { - return $this->matchNoteTypes[intval($type)]; } + + return $this->matchNoteTypes[intval($type)]; } public function getColumnNames()