1 | <?php |
||
7 | class AnswersModel extends AbstractModel |
||
8 | { |
||
9 | /** |
||
10 | * Get answers by questions (ID). |
||
11 | * |
||
12 | * @param array $anwers |
||
|
|||
13 | * |
||
14 | * @return array |
||
15 | */ |
||
16 | public function getAnswersByQuestions(array $answers) |
||
45 | |||
46 | /** |
||
47 | * Get answers by one question ID. |
||
48 | * |
||
49 | * @param int $questionID |
||
50 | * |
||
51 | * @return array |
||
52 | */ |
||
53 | public function getAnswersByOneQuestionId($questionID) |
||
61 | } |
||
62 |
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.