Project

General

Profile

Actions

Bug #91872

closed

Core commands do not return int, triggering an error

Added by S P over 4 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
scheduler
Target version:
-
Start date:
2020-07-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

#90652 fixes this for v10, but in v9 it has to be also int, Symfony is doing this:

$statusCode = $this->execute($input, $output);
if (!\is_int($statusCode)) {
    @trigger_error(sprintf('Return value of "%s::execute()" should always be of the type int since Symfony 4.4, %s returned.', static::class, \gettype($statusCode)), E_USER_DEPRECATED);
}

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #90652: Commands should return an integer value based on their successClosedAnja Leichsenring2020-03-05

Actions
Related to TYPO3 Core - Bug #89936: Command "site:list" not compatible with symfony 5Closed2019-12-13

Actions
Actions

Also available in: Atom PDF