Issue Task Closed

#100302ArrayUtility::isValidPath got wrong method signature

Alexander Opitz 03/25/23, 17:48 updated 04/05/23, 09:53

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;

Reviews 1