Actions
Bug #98417
closedExtbase with empty htmlResponse incompatible signature
Start date:
2022-09-22
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
Description
Whenever an action did not need to return content of the content ist empty, PHP 8.1 reports a type miss match.
<?php use Psr\Http\Message\ResponseInterface; use TYPO3\CMS\Extbase\Mvc\Controller\ActionController; class ExampleController extends ActionController { public function exampleAction(): ResponseInterface { return $this->htmlResponse(); } }
(1/1) TypeError TYPO3\CMS\Core\Http\StreamFactory::createStream(): Argument #1 ($content) must be of type string, null given, called in /var/www/html/private/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php on line 1092
Actions