From 0df40c43a1b4b734e4d632f48ad938c73a0b5cf5 Mon Sep 17 00:00:00 2001 From: Joe Huss Date: Thu, 15 Feb 2024 07:39:13 +0000 Subject: [PATCH] updates making return type compat with \soapclient --- src/Protocol/ClientDecoder.php | 2 +- src/Protocol/ClientEncoder.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Protocol/ClientDecoder.php b/src/Protocol/ClientDecoder.php index a4d7912..987830d 100644 --- a/src/Protocol/ClientDecoder.php +++ b/src/Protocol/ClientDecoder.php @@ -42,7 +42,7 @@ public function decode(string $function, string $response) * * @see \SoapClient::__doRequest() */ - public function __doRequest($request, $location, $action, $version, $one_way = 0) + public function __doRequest(string $request, string $location, string $action, int $version, bool $one_way = false): ?string { // the actual result doesn't actually matter, just return the given result // this will be processed internally and will return the parsed result diff --git a/src/Protocol/ClientEncoder.php b/src/Protocol/ClientEncoder.php index 8b065b9..48a26de 100644 --- a/src/Protocol/ClientEncoder.php +++ b/src/Protocol/ClientEncoder.php @@ -42,7 +42,7 @@ public function encode(string $name, array $args): RequestInterface * * @see \SoapClient::__doRequest() */ - public function __doRequest($request, $location, $action, $version, $one_way = 0) + public function __doRequest(string $request, string $location, string $action, int $version, bool $one_way = false): ?string { $headers = array(); if ($version === SOAP_1_1) {