#98417Extbase with empty htmlResponse incompatible signature
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
Reviews 5
- 11.5 75878[BUGFIX] Always send strings to the method createStream
- main 76197[BUGFIX] Always send strings to the method createStream
- main 75854[BUGFIX] Always send strings to the method createStream
- main 75872[BUGFIX] Always send strings to the method createStream
- main 75857[BUGFIX] Always send strings to the method createStream