Skip to content

Commit 2c87600

Browse files
committed
Update _doRequest signature for Encoder and Decoder
1 parent e1ed3c0 commit 2c87600

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Protocol/ClientDecoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function decode(string $function, string $response)
4242
*
4343
* @see \SoapClient::__doRequest()
4444
*/
45-
public function __doRequest($request, $location, $action, $version, $one_way = 0)
45+
public function __doRequest($request, $location, $action, $version, $one_way = 0): ?string
4646
{
4747
// the actual result doesn't actually matter, just return the given result
4848
// this will be processed internally and will return the parsed result

src/Protocol/ClientEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function encode(string $name, array $args): RequestInterface
4343
*
4444
* @see \SoapClient::__doRequest()
4545
*/
46-
public function __doRequest($request, $location, $action, $version, $one_way = 0)
46+
public function __doRequest($request, $location, $action, $version, $one_way = 0): ?string
4747
{
4848
$headers = array();
4949
if ($version === SOAP_1_1) {

0 commit comments

Comments
 (0)