#106870AbstractListTypeToCTypeUpdate should support integer list_type
Description
Some TYPO3 extensions from the first years of TYPO3 have integer values stored as list_type of tt_content.
The Upgrade wizard abstract base class AbstractListTypeToCTypeUpdate does not work for them because of this:
(1/1) #1727605678 RuntimeException
Invalid mapping item “2” in class “JambageCom\TtBoard\Upgrades\PluginListTypeToCTypeUpdate
typo3_src-13.4.9/typo3/sysext/install/Classes/Updates/AbstractListTypeToCTypeUpdate.php
line 288 should also allow an integer value as array key:
if (!is_string($listType) || $listType === ‘’) {
throw new \RuntimeException(‘Invalid mapping item “’ . $listType . ‘” in class “’ . static::class, 1727605678);
}
See extension tt_board where this is needed.
Solution:
if (!is_string($listType) && !is_int($listType) || $listType === ‘’) {
This is needed for TYPO3 13 in order some exensions can be made ready for TYPO3 14.