Project

General

Profile

Actions

Bug #88829

closed

Bootstrap::handleRequest() throws type error, when controller action returns empty string

Added by Armin Vieweg over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Category:
Extbase
Target version:
Start date:
2019-07-23
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

How to reproduce: Call an extbase controller action in frontend, which returns an empty string (not null!).

Exception:

Return value of TYPO3\CMS\Extbase\Core\Bootstrap::handleRequest() must be of the type string, null returned

Caused by return type hinting in:
https://github.com/TYPO3/TYPO3.CMS/blob/0c531014d09d0b16a92438c86d717a33e0a345b8/typo3/sysext/extbase/Classes/Core/Bootstrap.php#L188

Solution:

$content = (string) $response->shutdown();
Actions

Also available in: Atom PDF