From e7c7e2d34e9caefeaa025aa9081546e50c1ff2eb Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 28 Mar 2023 17:55:39 +0200 Subject: [PATCH] typo --- src/Http/Response.php | 2 +- src/Http/UrlScript.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/Response.php b/src/Http/Response.php index 484fa026..8b0c43f5 100644 --- a/src/Http/Response.php +++ b/src/Http/Response.php @@ -218,7 +218,7 @@ public function getHeaders(): array $headers = []; foreach (headers_list() as $header) { $a = strpos($header, ':'); - $headers[substr($header, 0, $a)] = (string) substr($header, $a + 2); + $headers[substr($header, 0, $a)] = substr($header, $a + 2); } return $headers; diff --git a/src/Http/UrlScript.php b/src/Http/UrlScript.php index 7b02ea73..d69c5ed4 100644 --- a/src/Http/UrlScript.php +++ b/src/Http/UrlScript.php @@ -90,7 +90,7 @@ public function getRelativeUrl(): string */ public function getPathInfo(): string { - return (string) substr($this->getPath(), strlen($this->scriptPath)); + return substr($this->getPath(), strlen($this->scriptPath)); }