Skip to content

Commit

Permalink
Merge pull request #6905 from veewee/soap-stub
Browse files Browse the repository at this point in the history
Fix invalid SoapClient::__doRequest() signature
  • Loading branch information
orklah committed Nov 13, 2021
2 parents b35b9f9 + b72da42 commit c21aefa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 25 deletions.
2 changes: 1 addition & 1 deletion dictionaries/CallMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -12223,7 +12223,7 @@
'snmpwalkoid' => ['array|false', 'hostname'=>'string', 'community'=>'string', 'object_id'=>'string', 'timeout='=>'int', 'retries='=>'int'],
'SoapClient::__call' => ['', 'function_name'=>'string', 'arguments'=>'array'],
'SoapClient::__construct' => ['void', 'wsdl'=>'mixed', 'options='=>'array|null'],
'SoapClient::__doRequest' => ['string', 'request'=>'string', 'location'=>'string', 'action'=>'string', 'version'=>'int', 'one_way='=>'int'],
'SoapClient::__doRequest' => ['string', 'request'=>'string', 'location'=>'string', 'action'=>'string', 'version'=>'int', 'one_way='=>'bool'],
'SoapClient::__getCookies' => ['array'],
'SoapClient::__getFunctions' => ['array'],
'SoapClient::__getLastRequest' => ['string'],
Expand Down
4 changes: 4 additions & 0 deletions dictionaries/CallMap_80_delta.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@
'old' => ['string|int|false', 'empty='=>'bool'],
'new' => ['string|int', 'empty='=>'bool'],
],
'SoapClient::__doRequest' => [
'old' => ['string', 'request'=>'string', 'location'=>'string', 'action'=>'string', 'version'=>'int', 'one_way='=>'int'],
'new' => ['string', 'request'=>'string', 'location'=>'string', 'action'=>'string', 'version'=>'int', 'one_way='=>'bool'],
],
'XMLWriter::startAttributeNs' => [
'old' => ['bool', 'prefix'=>'string', 'name'=>'string', 'namespace'=>'?string'],
'new' => ['bool', 'prefix'=>'?string', 'name'=>'string', 'namespace'=>'?string'],
Expand Down
24 changes: 0 additions & 24 deletions stubs/soap.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -243,30 +243,6 @@ class SoapClient {
*/
public function __getCookies () {}

/**
* Performs a SOAP request
* @link https://php.net/manual/en/soapclient.dorequest.php
* @param string $request <p>
* The XML SOAP request.
* </p>
* @param string $location <p>
* The URL to request.
* </p>
* @param string $action <p>
* The SOAP action.
* </p>
* @param int $version <p>
* The SOAP version.
* </p>
* @param int $one_way [optional] <p>
* If one_way is set to 1, this method returns nothing.
* Use this where a response is not expected.
* </p>
* @return string The XML SOAP response.
* @since 5.0.1
*/
public function __doRequest ($request, $location, $action, $version, $one_way = 0) {}

/**
* The __setCookie purpose
* @link https://php.net/manual/en/soapclient.setcookie.php
Expand Down

0 comments on commit c21aefa

Please sign in to comment.