From 256ddbf345c9a9e0e11648c67eb315d0c712bac3 Mon Sep 17 00:00:00 2001
From: Oliver Klee <typo3-coding@oliverklee.de>
Date: Fri, 18 Nov 2022 23:34:40 +0100
Subject: [PATCH] [TASK] Improve type annotations for GU::locationHeaderUrl

This helps PHPStan better analyse code that uses this method.

Resolves: #99133
Releases: main, 11.5
Change-Id: Ia6da1e1f25a9bfd0f493b2c1e244d79aab865c56
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76677
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
---
 typo3/sysext/core/Classes/Utility/GeneralUtility.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/core/Classes/Utility/GeneralUtility.php b/typo3/sysext/core/Classes/Utility/GeneralUtility.php
index 71ac6af9ad20..039384ed3bd5 100644
--- a/typo3/sysext/core/Classes/Utility/GeneralUtility.php
+++ b/typo3/sysext/core/Classes/Utility/GeneralUtility.php
@@ -2203,7 +2203,7 @@ class GeneralUtility
      * - Otherwise prefixed with TYPO3_REQUEST_DIR (relative to current dir / TYPO3_REQUEST_DIR)
      *
      * @param string $path URL / path to prepend full URL addressing to.
-     * @return string
+     * @return ($path is non-empty-string ? non-empty-string : string)
      */
     public static function locationHeaderUrl($path)
     {
-- 
GitLab