1 | <?php |
||
15 | class SoapClient extends \SoapClient |
||
16 | { |
||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $options; |
||
21 | /** |
||
22 | * @var EventDispatcherInterface |
||
23 | */ |
||
24 | protected $dispatcher; |
||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | private $mockRequests = []; |
||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | private $mockResponses = []; |
||
33 | |||
34 | /** |
||
35 | * SoapClient constructor. |
||
36 | * @param null $wsdl |
||
37 | * @param array|null $options |
||
38 | */ |
||
39 | 6 | public function __construct($wsdl = null, array $options = []) |
|
74 | |||
75 | 6 | public function __call($function_name, $arguments) |
|
96 | |||
97 | /** |
||
98 | * @param string $request |
||
99 | * @param string $location |
||
100 | * @param string $action |
||
101 | * @param int $version |
||
102 | * @param null $one_way |
||
103 | * @return bool|string |
||
104 | */ |
||
105 | 3 | public function __doRequest($request, $location, $action, $version, $one_way = null) |
|
146 | |||
147 | /** |
||
148 | * Triggered before a request is executed |
||
149 | * |
||
150 | * @param string $id |
||
151 | * @param string $resource |
||
152 | * @param string $requestContent |
||
153 | */ |
||
154 | 3 | protected function preCall(string $id, string $resource, string $requestContent = null) |
|
160 | |||
161 | /** |
||
162 | * @param string $id |
||
163 | * @param string $resource |
||
164 | * @param string $response |
||
165 | */ |
||
166 | 3 | protected function postCall(string $id, string $resource, string $response = null) |
|
180 | |||
181 | /** |
||
182 | * @param string $id |
||
183 | * @param string $resource |
||
184 | * @param string $requestContent |
||
185 | * @param \Exception $Exception |
||
|
|||
186 | */ |
||
187 | 3 | protected function faultCall(string $id, string $resource, string $requestContent, \Exception $exception) |
|
196 | |||
197 | /** |
||
198 | * @param string $wsdl |
||
199 | * @return string |
||
200 | */ |
||
201 | 6 | protected function resolveLocation($wsdl) |
|
212 | |||
213 | /** |
||
214 | * @param array $mockRequests |
||
215 | */ |
||
216 | 6 | private function setMockRequests(array $mockRequests) |
|
220 | |||
221 | /** |
||
222 | * @param array $mockResponses |
||
223 | */ |
||
224 | 6 | private function setMockResponses(array $mockResponses) |
|
228 | |||
229 | /** |
||
230 | * @param EventDispatcherInterface $dispatcher |
||
231 | */ |
||
232 | 6 | public function setDispatcher(EventDispatcherInterface $dispatcher) |
|
236 | } |
||
237 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.