SoapClient::__doRequest()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 6
Bugs 1 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 5
dl 0
loc 5
rs 10
c 6
b 1
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GusApi\Client;
6
7
class SoapClient extends \SoapClient
8
{
9
    public function __doRequest(string $request, string $location, string $action, int $version, bool $oneWay = false): string
10
    {
11
        $response = parent::__doRequest($request, $location, $action, $version, $oneWay);
0 ignored issues
show
Bug introduced by
$oneWay of type boolean is incompatible with the type integer expected by parameter $oneWay of SoapClient::__doRequest(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

11
        $response = parent::__doRequest($request, $location, $action, $version, /** @scrutinizer ignore-type */ $oneWay);
Loading history...
12
13
        return MultipartResponseDecoder::decode((string) $response);
14
    }
15
}
16