Issue Bug Closed

#90032[BUGFIX] Return integer from Command::execute() to satisfy Symfony 5

Michael Schams 12/29/19, 06:31 updated 02/27/20, 12:42

Description

When executing commands on the command line (for example triggering the Scheduler) an exception is thrown.

Uncaught TYPO3 Exception Return value of "TYPO3\CMS\Scheduler\Command\SchedulerCommand::execute()" must be of the type int, NULL returned.
thrown in file [...]/vendor/symfony/console/Command/Command.php
in line 258

Symfony 5 expects an integer as the return value from Command::execute() in the Command class, see issue 33747 on GitHub (Symfony repository).

This change return 0 to satisfy Symfony version 5 requirements.

Reviews 1