1 | <?php |
||
12 | class AmbassadorRepository extends AbstractRepository |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @return Ambassador|object|null |
||
17 | */ |
||
18 | public function findOneByName(string $name) |
||
26 | |||
27 | /** |
||
28 | * @param AmbassadorFormType $formType |
||
29 | * @param User $creator |
||
|
|||
30 | * @return Ambassador|null|object |
||
31 | */ |
||
32 | public function findOneByFormData(AbstractFormType $formType) |
||
39 | } |
||
40 |
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.