-
Notifications
You must be signed in to change notification settings - Fork 57
Description
Using the tagViewHelper (t3g/blog/Classes/ViewHelpers/Link/TagViewHelper.php) to link a tag is causing an error in the stable version 12.0.2 as well as the dev version.
I am using TYPO3 12.4 LTS.
The error message is:
TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::setRequest(): Argument #1 ($request) must be of type TYPO3\CMS\Extbase\Mvc\RequestInterface, TYPO3\CMS\Core\Http\ServerRequest given, called in /var/www/.../vendor/t3g/blog/Classes/ViewHelpers/Link/TagViewHelper.php on line 49
I assume the same error might happen for the other link viewhelper too, because all are using the same syntax to create a uri via a uriBuilder:
$uri = $uriBuilder->reset()->setRequest($this->renderingContext->getRequest())
This fails, because $this->renderingContext->getRequest() is returning a serverRequest object instead of the required requestInterface object.
Can anyone confirm this bug?