Skip to content

Commit

Permalink
updates making return type compat with \soapclient
Browse files Browse the repository at this point in the history
  • Loading branch information
detain committed Feb 15, 2024
1 parent 8a10ea4 commit 0df40c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Protocol/ClientDecoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Protocol/ClientEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0df40c4

Please sign in to comment.