Issue Bug Closed

#90229Cast integer to string items during route argument mapping

Oliver Hader 01/28/20, 14:12 updated 02/27/20, 12:43

Description

  TestingPlugin:
    type: Plugin
    namespace: tx_my
    routePath: '/filter/{a}/{b}/{c}'
    _arguments:
      a: 0
      b: 1
      c: 2

(to work e.g. with tx_my[]=a&tx_my[]=b...)

fails with error message like

TypeError : Argument 1 passed to TYPO3\CMS\Core\Routing\Enhancer\VariableProcessor::addNestedValue()
must be of the type string, integer given, called in typo3/sysext/core/Classes/Routing/Enhancer/VariableProcessor.php on line 286

Reviews 2