Task #100302
closedArrayUtility::isValidPath got wrong method signature
100%
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;
Updated by Alexander Opitz over 1 year ago
- Related to Task #97202: PHP 8.1 types for ArrayUtility added
Updated by Gerrit Code Review over 1 year ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78258
Updated by Thomas Hohn over 1 year ago
- Category set to Code Cleanup
- Assignee set to Thomas Hohn
- Target version set to 12.3
- PHP Version set to 8.1
Updated by Gerrit Code Review over 1 year ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78258
Updated by Gerrit Code Review over 1 year ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78258
Updated by Gerrit Code Review over 1 year ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78258
Updated by Thomas Hohn over 1 year ago
- Tracker changed from Bug to Task
- Is Regression deleted (
Yes)
Updated by Gerrit Code Review over 1 year ago
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78258
Updated by Gerrit Code Review over 1 year ago
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78258
Updated by Anonymous over 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 3773510b1894e38d316006b33563afc131cbf57c.