Skip to content
Snippets Groups Projects
Commit 336a91ef authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[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: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 497f313e
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