Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jul 30, 2023
1 parent a366e28 commit e7c7e2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/UrlScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}


Expand Down

0 comments on commit e7c7e2d

Please sign in to comment.