Skip to content

Commit 133daec

Browse files
committed
SoapClient fix
1 parent 990a2bf commit 133daec

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Log, Debug, Inspect
3737

3838
## Installation
3939

40-
This library supports PHP 5.4 - 8.4
40+
This library supports PHP 5.4 - 8.5
4141

4242
It is installable and autoloadable via [Composer](https://getcomposer.org/) as [bdk/debug](https://packagist.org/packages/bdk/debug).
4343

src/Debug/Collector/SoapClient.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ public function __doRequest($request, $location, $action, $version, $oneWay = 0,
109109
{
110110
$exception = null;
111111
try {
112-
$xmlResponse = parent::__doRequest($request, $location, $action, $version, $oneWay, $uriParserClass);
112+
$xmlResponse = PHP_VERSJION_ID >= 80500
113+
? parent::__doRequest($request, $location, $action, $version, $oneWay, $uriParserClass)
114+
: parent::__doRequest($request, $location, $action, $version, $oneWay);
113115
} catch (SoapFault $e) {
114116
// we'll rethrow bellow
115117
}

0 commit comments

Comments
 (0)