Project

General

Profile

Actions

Task #100302

closed

ArrayUtility::isValidPath got wrong method signature

Added by Alexander Opitz over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Code Cleanup
Target version:
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;

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #97202: PHP 8.1 types for ArrayUtilityClosedLarry Garfield2022-03-17

Actions
Actions

Also available in: Atom PDF