Actions
Bug #102328
closedRegression in cObjGet
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Code Cleanup
Target version:
Start date:
2023-11-06
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Reported by Rafael Kähm in https://forge.typo3.org/issues/99503#note-13
Please reopen, because applied patch makes unnecessary BC at least on 11.5.
See:
public function cObjGet($setup, $addKey = '')
{
return implode('', $this->cObjGetSeparated($setup, $addKey));
}
public function cObjGetSeparated(?array $setup, string $addKey = ''): array
{
if (!is_array($setup) || $setup === []) {
return [];
}
Proposal:
public function cObjGet($setup, $addKey = '')
{
if (!is_array($setup)) {
return '';
}
return implode('', $this->cObjGetSeparated($setup, $addKey));
}
public function cObjGetSeparated(?array $setup = [], string $addKey = ''): array
{
if (empty($setup)) {
return [];
}
}
Actions