1 | <?php |
||
19 | class AnswerController implements ContainerInjectableInterface |
||
20 | { |
||
21 | use ContainerInjectableTrait; |
||
22 | |||
23 | |||
24 | /** |
||
25 | * @var $data description |
||
26 | */ |
||
27 | //private $data; |
||
28 | |||
29 | |||
30 | // /** |
||
31 | // * The initialize method is optional and will always be called before the |
||
32 | // * target method/action. This is a convienient method where you could |
||
33 | // * setup internal properties that are commonly used by several methods. |
||
34 | // * |
||
35 | // * @return void |
||
36 | // */ |
||
37 | // public function initialize() : void |
||
38 | // { |
||
39 | // ; |
||
40 | // } |
||
41 | |||
42 | |||
43 | /** |
||
44 | * Description. |
||
45 | * |
||
46 | * @param datatype $variable Description |
||
|
|||
47 | * |
||
48 | * @return object as a response object |
||
49 | * @throws Exception |
||
50 | * |
||
51 | */ |
||
52 | public function indexActionGet(): object |
||
60 | |||
61 | public function createAction(int $questionId): object |
||
77 | |||
78 | } |
||
79 |
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.