Actions
Bug #95563
closedUndefined key warnings in ContentObjectRenderer.php
Start date:
2021-10-11
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Undefined array key "typolink." in /var/www/html/typo3_src-11.5.0/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php line 1043
$content = (string)$this->typoLink($string, $conf['typolink.']);
#maybe should be
$content = (string)$this->typoLink($string, $conf['typolink.'] ?? []);
Undefined array key "crop" in /var/www/html/typo3_src-11.5.0/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php line 1070
$conf[$parameterName] = $this->stdWrap($conf[$parameterName], $conf[$parameterName . '.']);
#maybe should be
$conf[$parameterName] = $this->stdWrap($conf[$parameterName], $conf[$parameterName . '.'] ?? []);
Undefined array key "m." in /var/www/html/typo3_src-11.5.0/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php line 4084
$maskArray = $fileArray['m.'];
#maybe should be
$maskArray = $fileArray['m.'] ?? [];
Undefined array key "addQueryString" in /var/www/html/typo3_src-11.5.0/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php line 627
$getVars = $this->parent_cObj->getQueryArguments($this->conf['addQueryString.']);
#maybe should be
$getVars = $this->parent_cObj->getQueryArguments($this->conf['addQueryString.'] ?? []);
Undefined array key 1 in /var/www/html/typo3_src-11.5.0/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php line 973
$endKey = $this->parent_cObj->getKey($begin_end[1], $this->tmpl->rootLine);
#maybe should be
$endKey = $this->parent_cObj->getKey($begin_end[1] ?? [], $this->tmpl->rootLine);
As far as I can see :)
Files
Actions