From 35ef1253f11fc02c7f29a0f275863373a7029f03 Mon Sep 17 00:00:00 2001 From: Evgeniy Glazyrin Date: Thu, 9 Jan 2025 15:48:53 +0400 Subject: [PATCH] Implicitly marking parameter $default as nullable is deprecated PHP 8.4 Deprecated: Spiral\RoadRunner\GRPC\ResponseHeaders::get(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead --- src/ResponseHeaders.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ResponseHeaders.php b/src/ResponseHeaders.php index a7586d5..04532ce 100644 --- a/src/ResponseHeaders.php +++ b/src/ResponseHeaders.php @@ -42,7 +42,7 @@ public function set(string $key, string $value): void * @param string|null $default * @return THeaderValue|null */ - public function get(string $key, string $default = null): ?string + public function get(string $key, ?string $default = null): ?string { return $this->headers[$key] ?? $default; }