sascha-egerer / phpstan-typo3

TYPO3 CMS class reflection extension for PHPStan & framework-specific rules
MIT License
42 stars 22 forks source link

Add dynamic return type extension for GeneralUtility::getIndpEnv #125

Closed sabbelasichon closed 1 year ago

sabbelasichon commented 1 year ago

The method GeneralUtility::getIndpEnv returns different value types depending on the value of the parameter. I would like to create a dynamic return type extension for that. In TYPO3 version 10 everything returns a string. In version 11 and above the return types are different. That´s the reason to introduce this kind of extension here.