Actions
Task #100302
closedArrayUtility::isValidPath got wrong method signature
Start date:
2023-03-25
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
Sprint Focus:
Description
The functions signature was updated in #97202 probably by using the information from DocBlock which already seams wrong.
The $path argument got "string" as typehint but should have get "array|string" as typehint. The $path argument is only handed over to the getValueByPath method which have "array|string" typehint for the $path argument.
Following code breaks now, if $fieldPointerPath is an array but it makes no sense to transfor this array into string with delims
ArrayUtility::isValidPath($sLangPart, $fieldPointerPath) ? ArrayUtility::getValueByPath($sLangPart, $fieldPointerPath) : null;
Actions