1 | <?php |
||
9 | class AbstractModelActionGenerator extends AbstractActionGenerator { |
||
10 | |||
11 | /** |
||
12 | * Generates an action trait with the given name as classname |
||
13 | * |
||
14 | * @param string $name |
||
|
|||
15 | * @param ActionSchema $action |
||
16 | * @return PhpTrait |
||
17 | */ |
||
18 | public function generate(ActionSchema $action) { |
||
28 | |||
29 | protected function addMethods(PhpClass $struct, ActionSchema $action) { |
||
31 | |||
32 | protected function ensureUseStatements(AbstractPhpStruct $struct) { |
||
36 | } |
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.