From 2d4c7d4bcddc08b04cfb44908ffac27ac1af5453 Mon Sep 17 00:00:00 2001 From: n0nag0n Date: Fri, 19 Jan 2024 21:35:14 -0500 Subject: [PATCH] a few cleanup comments --- flight/net/Request.php | 4 ++-- flight/net/Response.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flight/net/Request.php b/flight/net/Request.php index 88be447..99160d7 100644 --- a/flight/net/Request.php +++ b/flight/net/Request.php @@ -179,7 +179,7 @@ final class Request * Initialize request properties. * * @param array $properties Array of request properties - * @return static + * @return self */ public function init(array $properties = []) { @@ -267,7 +267,7 @@ final class Request */ public static function getProxyIpAddress(): string { - static $forwarded = [ + $forwarded = [ 'HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', diff --git a/flight/net/Response.php b/flight/net/Response.php index 38d06ec..e5592b8 100644 --- a/flight/net/Response.php +++ b/flight/net/Response.php @@ -147,7 +147,7 @@ class Response * @param array|string $name Header name or array of names and values * @param string|null $value Header value * - * @return static Self reference + * @return self */ public function header($name, ?string $value = null) {