From 9e53c07662997d5626f4568064ccb02b6dcd5335 Mon Sep 17 00:00:00 2001 From: David Matejka Date: Tue, 9 Apr 2019 18:49:10 +0200 Subject: [PATCH] http request: remove deprecated parameter on getHeader method --- src/HttpRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HttpRequest.php b/src/HttpRequest.php index b81cc78..ec5ad7e 100644 --- a/src/HttpRequest.php +++ b/src/HttpRequest.php @@ -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); }