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\
:
add
Instance () array2xml
() call
User Function () cmp
FQDN () cmp
IP () cmp
IPv4 () cmp
IPv6 () copy
Directory () create
Directory Path () create
Version Numbered Filename () explode
Url2Array () fix
Permissions () flush
Internal Runtime Caches () get
All Files And Folders In Path () get
Bytes From Size Measurement () get
Class Name () get
File Abs File Name () get
Files In Dir () get
Indp Env () get
Instances () get
Logger () get
Singleton Instances () get
Url () get_
dirs () get_
tag_ attributes () implode
Array For Url () implode
Attributes () int
Explode () is
Allowed Abs Path () is
On Current Host () is
Valid Url () json
Encode For Html Attribute () json
Encode For Java Script () location
Header Url () make
Instance For Di () mkdir_
deep () mkdir
() normalize
IPv6 () purge
Instances () quote
JSvalue () remove
Prefix Path From List () remove
Singleton Instance () reset
Singleton Instances () resolve
Back Path () rev
Explode () rmdir
() sanitize
Local Url () set
Indp Env () set
Singleton Instance () split_
tag_ attributes () tempnam
() trim
Explode () unlink_
tempfile () upload_
copy_ move () upload_
to_ tempfile () valid
Email () valid
IP () valid
IPv4 () valid
IPv6 () valid
Path Str () webserver
Uses Https () wrap
JS () write
File To Typo3temp Dir () write
File () write
Java Script Content To Temporary File () write
Style Sheet Content To Temporary File () xml2array
Process () xml2array
() xml2tree
() xml
Recompile 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.