1 | <?php |
||
21 | class QuestionController implements ContainerInjectableInterface |
||
22 | { |
||
23 | use ContainerInjectableTrait; |
||
24 | |||
25 | |||
26 | /** |
||
27 | * @var $data description |
||
28 | */ |
||
29 | //private $data; |
||
30 | |||
31 | |||
32 | // /** |
||
33 | // * The initialize method is optional and will always be called before the |
||
34 | // * target method/action. This is a convienient method where you could |
||
35 | // * setup internal properties that are commonly used by several methods. |
||
36 | // * |
||
37 | // * @return void |
||
38 | // */ |
||
39 | // public function initialize() : void |
||
40 | // { |
||
41 | // ; |
||
42 | // } |
||
43 | |||
44 | |||
45 | /** |
||
46 | * Description. |
||
47 | * |
||
48 | * @param datatype $variable Description |
||
|
|||
49 | * |
||
50 | * @return object as a response object |
||
51 | * @throws Exception |
||
52 | * |
||
53 | */ |
||
54 | public function indexActionGet(): object |
||
81 | |||
82 | public function readAction($questionId) { |
||
108 | |||
109 | /** |
||
110 | * Handler with form to create a new item. |
||
111 | * |
||
112 | * @return object as a response object |
||
113 | */ |
||
114 | public function createAction() : object |
||
128 | // public function answerAction() |
||
129 | // { |
||
130 | // $page = $this->di->get("page"); |
||
131 | // $form = new CreateForm($this->di); |
||
132 | // $form->check(); |
||
133 | // $answer = new Answer(); |
||
134 | // $answer->setDb($this->di->get("dbqb")); |
||
135 | // $page->add("forum/create_answer", [ |
||
136 | // "form" => $form->getHTML() |
||
137 | // ]); |
||
138 | // |
||
139 | // return $page->render([ |
||
140 | // "title" => "Delete an item", |
||
141 | // ]); |
||
142 | // } |
||
143 | |||
144 | |||
145 | |||
146 | |||
147 | } |
||
148 |
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.