Issue Task Closed

#96732Streamline getLanguageService function

Torben Hansen 02/02/22, 14:44 updated 10/04/22, 08:35

Description

Many classes in TYPO3 have a function called getLanguageService() which returns $GLOBALS['LANG'] and where nullable $GLOBALS['LANG'] ?? null. Some of those functions use a PHP return type, others do not. Some have a doc comment block, other do not. And in some rare cases, getLanguageService() gets overridden in subclasses with exactly the same functionality.

Reviews 1