1 | <?php |
||
13 | class Com2Session extends FormModel |
||
14 | { |
||
15 | /** |
||
16 | * Constructor injects with DI container. |
||
17 | * |
||
18 | * @param Anax\DI\DIInterface $di a service container |
||
|
|||
19 | */ |
||
20 | 2 | public function __construct(DIInterface $dis) |
|
41 | |||
42 | |||
43 | |||
44 | /** |
||
45 | * Callback for submit-button which should return true if it could |
||
46 | * carry out its work and false if something failed. |
||
47 | * |
||
48 | * @return boolean true if okey, false if something went wrong. |
||
49 | */ |
||
50 | public function callbackSubmit() |
||
68 | } |
||
69 |
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.