Actions
Bug #98486
closedPHP warning thrown: Array to string conversion in PageLinkBuilder.php
Start date:
2022-09-30
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Using the following snippet in a Fluid template (from the documentation examples extension):
<f:link.page pageUid="{settings.singlePid}" additionalParams="{tx_examples_haiku: {action: 'show', haiku: haiku.uid}}">{haiku.title}</f:link.page>
throws the following PHP warning in current main (12.0.x-dev, used commit 3d6c735):
Array to string conversion in /var/www/html/public/typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php line 223
The additionalParams is given as an array, then a string is appended to that array.
I assume, this comes from this commit:
https://github.com/TYPO3/typo3/commit/ae28f3d22f3a69b70f5f976c1e348739ac438331
The usage of the view helper worked some days ago.
Actions