| 1 | <?php |
||
| 4 | class Response |
||
| 5 | { |
||
| 6 | /** |
||
| 7 | * Http status code received. |
||
| 8 | * |
||
| 9 | * @var int |
||
| 10 | */ |
||
| 11 | protected $statusCode; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Http response body. |
||
| 15 | * |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $content; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Initilizes an instance of Response. |
||
| 22 | * |
||
| 23 | * @param resource $curl_resource Curl resource instance. |
||
| 24 | * @param string $result Response content. |
||
|
|
|||
| 25 | */ |
||
| 26 | public function __construct($curl_resource, $content) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Http status code received from the server. |
||
| 35 | * |
||
| 36 | * @return int |
||
| 37 | */ |
||
| 38 | public function getStatusCode() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Http response body. |
||
| 45 | * |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getContent() |
||
| 52 | } |
||
| 53 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.