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