File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments