| 1 | <?php |
||
| 7 | class BadResponseException extends \RuntimeException |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var ResponseInterface |
||
| 11 | */ |
||
| 12 | private $response; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string $message |
||
| 16 | * @param int $statusCode |
||
|
|
|||
| 17 | * @param ResponseInterface|null $response |
||
| 18 | */ |
||
| 19 | public function __construct($message, ResponseInterface $response = null) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return null|ResponseInterface |
||
| 29 | */ |
||
| 30 | public function getResponse() |
||
| 34 | } |
||
| 35 |
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.