Issue Bug Closed

#79052Error with PHP 7.1 when calling TypoScriptFrontendController->getConfigArray

Timo Hund 12/20/16, 16:40 updated 10/17/17, 23:31

Description

When i run some test from EXT:solr with PHP 7.1 i get the following error:

TypeError: Argument 2 passed to TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule() must be of the type array, string given

I think the reason is, that TypoScriptFrontendController->config is still an empty string, when the part i the code is called, and the second argument was expected to be an array.

if (is_array($this->tmpl->setup['config.'])) {
   ArrayUtility::mergeRecursiveWithOverrule($this->tmpl->setup['config.'], $this->config['config']);
   $this->config['config'] = $this->tmpl->setup['config.'];
}

Reviews 2