Breaking: #101305 - Introduce type declarations for some methods in GeneralUtility
See forge#101305, forge#101453
Description
Native return and param type declarations have been introduced for the following
methods of
\TYPO3\:
addInstance () array2xml() callUser Function () cmpFQDN () cmpIP () cmpIPv4 () cmpIPv6 () copyDirectory () createDirectory Path () createVersion Numbered Filename () explodeUrl2Array () fixPermissions () flushInternal Runtime Caches () getAll Files And Folders In Path () getBytes From Size Measurement () getClass Name () getFile Abs File Name () getFiles In Dir () getIndp Env () getInstances () getLogger () getSingleton Instances () getUrl () get_dirs () get_tag_ attributes () implodeArray For Url () implodeAttributes () intExplode () isAllowed Abs Path () isOn Current Host () isValid Url () jsonEncode For Html Attribute () jsonEncode For Java Script () locationHeader Url () makeInstance For Di () mkdir_deep () mkdir() normalizeIPv6 () purgeInstances () quoteJSvalue () removePrefix Path From List () removeSingleton Instance () resetSingleton Instances () resolveBack Path () revExplode () rmdir() sanitizeLocal Url () setIndp Env () setSingleton Instance () split_tag_ attributes () tempnam() trimExplode () unlink_tempfile () upload_copy_ move () upload_to_ tempfile () validEmail () validIP () validIPv4 () validIPv6 () validPath Str () webserverUses Https () wrapJS () writeFile To Typo3temp Dir () writeFile () writeJava Script Content To Temporary File () writeStyle Sheet Content To Temporary File () xml2arrayProcess () xml2array() xml2tree() xmlRecompile From Struct Val Array ()
Impact
Calling any of the mentioned methods with invalid types will result in a PHP error.
Affected installations
Only those installations that use the mentioned methods with invalid types.
Migration
Make sure to pass parameters of the required types to the mentioned methods.