Project

General

Profile

Actions

Bug #90032

closed

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

Added by Michael Schams over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-12-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.3
Tags:
Symfony Console Command Scheduler
Complexity:
Is Regression:
Sprint Focus:

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.

Actions

Also available in: Atom PDF