1 | <?php |
||
12 | class Com2Create extends FormModel |
||
13 | { |
||
14 | /** |
||
15 | * Constructor injects with DI container. |
||
16 | * |
||
17 | * @param Anax\DI\DIInterface $di a service container |
||
|
|||
18 | */ |
||
19 | 2 | public function __construct(DIInterface $dis) |
|
57 | |||
58 | |||
59 | /** |
||
60 | * Callback for submit-button which should return true if it could |
||
61 | * carry out its work and false if something failed. |
||
62 | * |
||
63 | * @return boolean true if okey, false if something went wrong. |
||
64 | */ |
||
65 | public function callbackSubmit() |
||
77 | } |
||
78 |
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.