Skip to content

Commit

Permalink
Update nusoap.php
Browse files Browse the repository at this point in the history
there was a deprecated error about mandatory and optional params, changed the order to make it go away
  • Loading branch information
waddahadel authored May 10, 2024
1 parent 4ee10f1 commit e9836a8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions webservice/soap/lib/nusoap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2597,7 +2597,7 @@ public function connect($connection_timeout=0, $response_timeout=30)
* @return string data
* @access public
*/
public function send($data, $timeout=0, $response_timeout=30, $cookies=null)
public function send($data, $cookies=null, $timeout=0, $response_timeout=30)
{
$this->debug('entered send() with data of length: ' . strlen($data));

Expand Down Expand Up @@ -2638,11 +2638,10 @@ public function send($data, $timeout=0, $response_timeout=30, $cookies=null)
* @access public
* @deprecated
*/
public function sendHTTPS($data, $timeout=0, $response_timeout=30, $cookies=null)
public function sendHTTPS($data, $cookies=null, $timeout=0, $response_timeout=30)
{
return $this->send($data, $timeout, $response_timeout, $cookies);
return $this->send($data, $cookies, $timeout, $response_timeout);
}

/**
* if authenticating, set user credentials here
*
Expand Down

0 comments on commit e9836a8

Please sign in to comment.