From d5c2ee32cde7d0a624f5df7d098461c4a9b559c5 Mon Sep 17 00:00:00 2001 From: vukbgit Date: Fri, 24 Jun 2022 14:47:36 +0200 Subject: [PATCH] added return type to Client methods to suppress inheritance error --- src/Client.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Client.php b/src/Client.php index e85d085..5418c12 100644 --- a/src/Client.php +++ b/src/Client.php @@ -190,7 +190,7 @@ public function setVerbose( $verbose = true ) * * Credits: https://forum.italia.it/u/cesco69 */ - public function __doRequest( $request, $location, $action, $version, $one_way = null ) + public function __doRequest( $request, $location, $action, $version, $one_way = null ): string { // reset $this->lastResponseBody = ''; @@ -327,22 +327,22 @@ public function __processResponse( $response ) return $xml_response; } - public function __getLastRequestHeaders() + public function __getLastRequestHeaders(): string { return implode("\n", $this->lastRequestHeaders); } - public function __getLastResponseHeaders() + public function __getLastResponseHeaders(): string { return implode("\n", $this->lastResponseHeaders); } - public function __getLastRequest() + public function __getLastRequest(): string { return $this->lastRequestBody; } - public function __getLastResponse() + public function __getLastResponse(): string { return $this->lastResponseBody; }