Skip to content

Commit 49aceb1

Browse files
committed
add missing parameter
1 parent 80816b7 commit 49aceb1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

AbstractSoapClientBase.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ public function getLastResponse($asDomDocument = false)
341341
*/
342342
public function getLastRequestHeaders($asArray = false)
343343
{
344-
return $this->getLastHeaders('__getLastRequestHeaders');
344+
return $this->getLastHeaders('__getLastRequestHeaders', $asArray);
345345
}
346346
/**
347347
* Returns the last response headers used by the SoapClient object as the original value or an array
@@ -354,13 +354,14 @@ public function getLastRequestHeaders($asArray = false)
354354
*/
355355
public function getLastResponseHeaders($asArray = false)
356356
{
357-
return $this->getLastHeaders('__getLastResponseHeaders');
357+
return $this->getLastHeaders('__getLastResponseHeaders', $asArray);
358358
}
359359
/**
360360
* @param string $method
361+
* @param bool $asArray allows to get the headers in an associative array
361362
* @return string[]|null
362363
*/
363-
protected function getLastHeaders($method)
364+
protected function getLastHeaders($method, $asArray)
364365
{
365366
$headers = self::getSoapClient() instanceof \SoapClient ? self::getSoapClient()->$method() : null;
366367
if (is_string($headers) && $asArray) {

0 commit comments

Comments
 (0)