Project

General

Profile

Bug #79052

Updated by Timo Hund over 7 years ago

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 should be intialized with an empty string, when array() otherwise the the following part i the code is called, and the second argument was expected to be an array. of getConfigArray: 

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

 Calls ArrayUtility::mergeRecursiveWithOverrule with an empty string as second argument, which causes this error.

Back