#100006Invalid Array Key in GraphicalFunctions
Description
When using GIFbuilder with text and breakWidth options set, the following PHP Warning appears:
> PHP Warning: Undefined array key 5 in /var/www/html/web/public/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php line 1264
The issue appears in \TYPO3\CMS\Core\Imaging\GraphicalFunctions::getWordPairsForLineBreak when trying to access $wordsArray[$index + 1] which is not existing, in the last iteration:
clipboard-202302211723-tfcoh.png