Skip to content
Snippets Groups Projects
Commit 548c2f4e authored by Oliver Klee's avatar Oliver Klee Committed by Christian Kuhn
Browse files

[TASK] Fix the return type annotation of getIndpEnv

GeneralUtility::getIndpEnv can also return values other than string,
e.g., PATH_INFO might return null, and TYPO3_SSL will return a
bool. Also, _ARRAY will return an array of all possible scalar
values.

The return type annotation needs to correctly reflect that in order
for static type analysis to be able to work correctly when this
function is called.

Resolves: #97020
Releases: main, 11.5
Change-Id: Ibb24f1a3451c6598452402fc7a7b0a96c66bbd01
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73693


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarSimon Gilli <typo3@gilbertsoft.org>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarSimon Gilli <typo3@gilbertsoft.org>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent ee28696d
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment