Skip to content

Commit

Permalink
[TASK] Add return type to KauderwelschCommand->execute()
Browse files Browse the repository at this point in the history
Symfony 7 enforces the return type on the basic methods
in command classes, for example the `execute()` method.

The return type `int` can be safely added and works for
symfony 6 and 7.

TYPO3 v12 recently added optional symfony 7 support but
missed to adjust the command return type.
  • Loading branch information
sbuerk committed Jan 6, 2024
1 parent 2557138 commit 5d2515e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Command/KauderwelschCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class KauderwelschCommand extends Command
* @param OutputInterface $output
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$output->writeln(GeneralUtility::makeInstance(KauderwelschService::class)->getLoremIpsum());
return 0;
Expand Down

0 comments on commit 5d2515e

Please sign in to comment.