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()