From b918ecaf2f9ea5bcfa22ea022f90504317ab1531 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 7 Jun 2022 12:04:21 +0200 Subject: [PATCH 1/2] Fix return type of Header::all --- src/Symfony/Component/HttpFoundation/HeaderBag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpFoundation/HeaderBag.php b/src/Symfony/Component/HttpFoundation/HeaderBag.php index 4683a684095a5..874996b066859 100644 --- a/src/Symfony/Component/HttpFoundation/HeaderBag.php +++ b/src/Symfony/Component/HttpFoundation/HeaderBag.php @@ -65,7 +65,7 @@ public function __toString() * * @param string|null $key The name of the headers to return or null to get them all * - * @return array>|array + * @return $key is null ? array> : array */ public function all(string $key = null) { From 70b51b7428a6c9e3e0c4b1b301389efa4af4356d Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 7 Jun 2022 13:10:41 +0200 Subject: [PATCH 2/2] Fix syntax Co-authored-by: Vincent Langlet --- src/Symfony/Component/HttpFoundation/HeaderBag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpFoundation/HeaderBag.php b/src/Symfony/Component/HttpFoundation/HeaderBag.php index 874996b066859..d7c46d377b8bf 100644 --- a/src/Symfony/Component/HttpFoundation/HeaderBag.php +++ b/src/Symfony/Component/HttpFoundation/HeaderBag.php @@ -65,7 +65,7 @@ public function __toString() * * @param string|null $key The name of the headers to return or null to get them all * - * @return $key is null ? array> : array + * @return ($key is null ? array> : array) */ public function all(string $key = null) {