Issue Bug Closed

#98486PHP warning thrown: Array to string conversion in PageLinkBuilder.php

Chris Müller 09/30/22, 18:34 updated 10/04/22, 08:36

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.

Reviews 1