1 | <?php |
||
8 | class ResponseConverter |
||
9 | { |
||
10 | /** |
||
11 | * @param ResponseInterface $response |
||
12 | * @param string $format |
||
|
|||
13 | * |
||
14 | * @return ResponseInterface|\Psr\Http\Message\StreamInterface|\SimpleXMLElement|string |
||
15 | * |
||
16 | * @throws LinkedInApiException |
||
17 | */ |
||
18 | public static function convert(ResponseInterface $response, $requestFormat, $dataType) |
||
40 | |||
41 | /** |
||
42 | * @param ResponseInterface $response |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | public static function convertToArray(ResponseInterface $response) |
||
50 | |||
51 | /** |
||
52 | * @param ResponseInterface $response |
||
53 | * |
||
54 | * @return \SimpleXMLElement |
||
55 | * |
||
56 | * @throws LinkedInApiException |
||
57 | */ |
||
58 | public static function convertToSimpleXml(ResponseInterface $response) |
||
74 | } |
||
75 |
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.