[BUGFIX] Enforce $GLOBALS['LANG']->sL() returns string
Calling LanguageService->sL() should *always* return a string, even if it's empty. The patch enforces this. This reveals a couple of incomplete unit test mocks, which are fixed to keep the test suite happy. Resolves: #95776 Releases: master Change-Id: I2fbd272cebdbf76eeec354b3bc8750c172b3ece3 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71974 Tested-by:core-ci <typo3@b13.com> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch>
Showing
- typo3/sysext/backend/Tests/Unit/Configuration/TranslationConfigurationProviderTest.php 4 additions, 0 deletions...it/Configuration/TranslationConfigurationProviderTest.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaCheckboxItemsTest.php 1 addition, 0 deletions...Tests/Unit/Form/FormDataProvider/TcaCheckboxItemsTest.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaRadioItemsTest.php 1 addition, 0 deletions...nd/Tests/Unit/Form/FormDataProvider/TcaRadioItemsTest.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php 1 addition, 0 deletions...d/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php
- typo3/sysext/core/Classes/Localization/LanguageService.php 1 addition, 1 deletiontypo3/sysext/core/Classes/Localization/LanguageService.php
- typo3/sysext/core/Tests/Unit/Localization/TcaSystemLanguageCollectorTest.php 36 additions, 31 deletions...ests/Unit/Localization/TcaSystemLanguageCollectorTest.php
Please register or sign in to comment