From f69473d01b70ac2e7596e4167f56e23e5ea01e33 Mon Sep 17 00:00:00 2001 From: Oliver Klee <typo3-coding@oliverklee.de> Date: Mon, 11 Jul 2022 14:51:13 +0200 Subject: [PATCH] [TASK] Improve type annotation for GU::setIndpEnv This helps static code analysis in extensions. Resolves: #97893 Releases: main, 11.5 Change-Id: Ie2eee8244438cc8d4624608ce261f5418540c672 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75097 Tested-by: core-ci <typo3@b13.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Nikita Hovratov <nikita.h@live.de> Reviewed-by: Benni Mack <benni@typo3.org> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Nikita Hovratov <nikita.h@live.de> --- typo3/sysext/core/Classes/Utility/GeneralUtility.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/typo3/sysext/core/Classes/Utility/GeneralUtility.php b/typo3/sysext/core/Classes/Utility/GeneralUtility.php index 829608eda8ed..ffac9e06d560 100644 --- a/typo3/sysext/core/Classes/Utility/GeneralUtility.php +++ b/typo3/sysext/core/Classes/Utility/GeneralUtility.php @@ -2238,10 +2238,10 @@ class GeneralUtility } /** - * This method is only for testing and should never be used outside tests- + * This method is only for testing and should never be used outside tests. * - * @param string $envName - * @param mixed $value + * @param non-empty-string $envName + * @param string|bool|array<string, string|bool|null>|null $value * @internal */ public static function setIndpEnv($envName, $value) -- GitLab