From 19f79babb26e3fc852a2d75013365c2c1b231cad Mon Sep 17 00:00:00 2001 From: Jaap Jansma Date: Wed, 6 Dec 2023 17:41:57 +0100 Subject: [PATCH] Fix a problem with php 8 and civicrm 5.67.1 --- vendor/symfony/http-foundation/ResponseHeaderBag.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/vendor/symfony/http-foundation/ResponseHeaderBag.php b/vendor/symfony/http-foundation/ResponseHeaderBag.php index 3dc5a801e..130492a65 100644 --- a/vendor/symfony/http-foundation/ResponseHeaderBag.php +++ b/vendor/symfony/http-foundation/ResponseHeaderBag.php @@ -90,7 +90,7 @@ public function replace(array $headers = []) * * @param string|null $key The name of the headers to return or null to get them all */ - public function all(/*string $key = null*/) + public function all(?string $key = null): array { $headers = parent::all(); @@ -166,15 +166,14 @@ public function remove($key) /** * {@inheritdoc} */ - public function hasCacheControlDirective($key) - { + public function hasCacheControlDirective($key): bool { return \array_key_exists($key, $this->computedCacheControl); } /** * {@inheritdoc} */ - public function getCacheControlDirective($key) + public function getCacheControlDirective($key): string|bool|null { return $this->computedCacheControl[$key] ?? null; }