Skip to content

Commit

Permalink
http request: remove deprecated parameter on getHeader method
Browse files Browse the repository at this point in the history
  • Loading branch information
matej21 committed Apr 9, 2019
1 parent f7ca1ee commit 9e53c07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HttpRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public function setHeader(string $name, string $value)
}


public function getHeader(string $header, $default = NULL): ?string
public function getHeader(string $header): ?string
{
if (isset($this->headers[$header])) {
return $this->headers[$header];
}
return parent::getHeader($header, $default);
return parent::getHeader($header);
}


Expand Down

0 comments on commit 9e53c07

Please sign in to comment.