1 | <?php |
||
9 | class ResponseConverter |
||
10 | { |
||
11 | /** |
||
12 | * @param ResponseInterface $response |
||
13 | * @param string $format |
||
|
|||
14 | * @param string $dataType |
||
15 | * |
||
16 | * @return ResponseInterface|\Psr\Http\Message\StreamInterface|\SimpleXMLElement|string |
||
17 | * |
||
18 | * @throws InvalidArgumentException |
||
19 | * @throws LinkedInTransferException |
||
20 | */ |
||
21 | public static function convert(ResponseInterface $response, $requestFormat, $dataType) |
||
43 | |||
44 | /** |
||
45 | * @param ResponseInterface $response |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | public static function convertToArray(ResponseInterface $response) |
||
53 | |||
54 | /** |
||
55 | * @param ResponseInterface $response |
||
56 | * |
||
57 | * @return \SimpleXMLElement |
||
58 | * |
||
59 | * @throws LinkedInTransferException |
||
60 | */ |
||
61 | public static function convertToSimpleXml(ResponseInterface $response) |
||
70 | } |
||
71 |
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.