Skip to content
Snippets Groups Projects
Commit bed06ae7 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/+/73734


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 8e5e5741
Branches
Tags
No related merge requests found
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