1 | <?php |
||
18 | class ForumController implements ContainerInjectableInterface |
||
19 | { |
||
20 | use ContainerInjectableTrait; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * @var $data description |
||
25 | */ |
||
26 | //private $data; |
||
27 | |||
28 | |||
29 | // /** |
||
30 | // * The initialize method is optional and will always be called before the |
||
31 | // * target method/action. This is a convienient method where you could |
||
32 | // * setup internal properties that are commonly used by several methods. |
||
33 | // * |
||
34 | // * @return void |
||
35 | // */ |
||
36 | // public function initialize() : void |
||
37 | // { |
||
38 | // ; |
||
39 | // } |
||
40 | |||
41 | |||
42 | /** |
||
43 | * Description. |
||
44 | * |
||
45 | * @param datatype $variable Description |
||
|
|||
46 | * |
||
47 | * @return object as a response object |
||
48 | * @throws Exception |
||
49 | * |
||
50 | */ |
||
51 | public function indexActionGet(): object |
||
106 | |||
107 | } |
||
108 |
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.