Skip to content

Commit 6ac8156

Browse files
committed
Psalm + PHP85 compatibility
1 parent 1eabab1 commit 6ac8156

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/AbusedClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ public function __doRequest(
4949
string $location,
5050
string $action,
5151
int $version,
52-
bool $one_way = false
52+
bool $one_way = false,
53+
?string $uriParserClass = null,
5354
): string {
5455
$this->storedRequest = new SoapRequest($request, $location, $action, $version, $one_way);
5556

src/Metadata/MethodsParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private function parseMethodFromString(string $methodString): Method
4141

4242
private function transformListResponseToArray(string $methodString): string
4343
{
44-
return preg_replace('/^list\(([^\)]*)\)(.*)/i', 'array$2', $methodString);
44+
return (string) preg_replace('/^list\(([^\)]*)\)(.*)/i', 'array$2', $methodString);
4545
}
4646

4747
private function parseParameters(string $methodString): ParameterCollection
@@ -51,7 +51,7 @@ private function parseParameters(string $methodString): ParameterCollection
5151
return new ParameterCollection();
5252
}
5353

54-
$parameters = preg_split('/,\s?/', $properties[1]);
54+
$parameters = preg_split('/,\s?/', $properties[1]) ?: [];
5555

5656
return new ParameterCollection(...array_map(
5757
function (string $parameter): Parameter {

src/Transport/ExtSoapServerTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function request(SoapRequest $request): SoapResponse
2020
{
2121
ob_start();
2222
$this->server->handle($request->getRequest());
23-
$responseBody = ob_get_contents();
23+
$responseBody = (string) ob_get_contents();
2424
ob_end_clean();
2525

2626
return new SoapResponse($responseBody);

0 commit comments

Comments
 (0)